aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-21 01:18:37 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-21 11:42:17 +0100
commit4d8875ec23cf299277a0f028ea2ac99eb6f603c9 (patch)
tree6a1d32dd7d4dec420de705f53abe9150675ae3b3 /libavformat/mpeg.c
parent6dc1da416e14ede6cf8018183f86aeec5cfae86b (diff)
downloadffmpeg-4d8875ec23cf299277a0f028ea2ac99eb6f603c9.tar.gz
lavf: Constify the probe function argument.
Reviewed-by: Lauri Kasanen Reviewed-by: Tomas Härdin
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 9efe1bf253..3205f209e6 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -64,7 +64,7 @@ static int check_pack_header(const uint8_t *buf)
return (buf[1] & 0xC0) == 0x40 || (buf[1] & 0xF0) == 0x20;
}
-static int mpegps_probe(AVProbeData *p)
+static int mpegps_probe(const AVProbeData *p)
{
uint32_t code = -1;
int i;
@@ -703,7 +703,7 @@ AVInputFormat ff_mpegps_demuxer = {
#define REF_STRING "# VobSub index file,"
#define MAX_LINE_SIZE 2048
-static int vobsub_probe(AVProbeData *p)
+static int vobsub_probe(const AVProbeData *p)
{
if (!strncmp(p->buf, REF_STRING, sizeof(REF_STRING) - 1))
return AVPROBE_SCORE_MAX;