From 4d8875ec23cf299277a0f028ea2ac99eb6f603c9 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 21 Mar 2019 01:18:37 +0100 Subject: lavf: Constify the probe function argument. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Lauri Kasanen Reviewed-by: Tomas Härdin --- libavformat/bintext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/bintext.c') diff --git a/libavformat/bintext.c b/libavformat/bintext.c index 0b499d9555..d4921749a0 100644 --- a/libavformat/bintext.c +++ b/libavformat/bintext.c @@ -126,7 +126,7 @@ static void predict_width(AVCodecParameters *par, uint64_t fsize, int got_width) par->width = fsize > 4000 ? (160<<3) : (80<<3); } -static int bin_probe(AVProbeData *p) +static int bin_probe(const AVProbeData *p) { const uint8_t *d = p->buf; int magic = 0, sauce = 0; @@ -204,7 +204,7 @@ static int bintext_read_header(AVFormatContext *s) #endif /* CONFIG_BINTEXT_DEMUXER */ #if CONFIG_XBIN_DEMUXER -static int xbin_probe(AVProbeData *p) +static int xbin_probe(const AVProbeData *p) { const uint8_t *d = p->buf; @@ -302,7 +302,7 @@ static const uint8_t idf_magic[] = { 0x04, 0x31, 0x2e, 0x34, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x15, 0x00 }; -static int idf_probe(AVProbeData *p) +static int idf_probe(const AVProbeData *p) { if (p->buf_size < sizeof(idf_magic)) return 0; -- cgit v1.2.1