diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-21 01:18:37 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-21 11:42:17 +0100 |
commit | 4d8875ec23cf299277a0f028ea2ac99eb6f603c9 (patch) | |
tree | 6a1d32dd7d4dec420de705f53abe9150675ae3b3 /libavformat/bintext.c | |
parent | 6dc1da416e14ede6cf8018183f86aeec5cfae86b (diff) | |
download | ffmpeg-4d8875ec23cf299277a0f028ea2ac99eb6f603c9.tar.gz |
lavf: Constify the probe function argument.
Reviewed-by: Lauri Kasanen
Reviewed-by: Tomas Härdin
Diffstat (limited to 'libavformat/bintext.c')
-rw-r--r-- | libavformat/bintext.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |