X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpeg.c;h=3205f209e68e2908b70a1541787793903e3d7c07;hb=5f64f6058e0c23641a68ce7dfe47b1f55efd401c;hp=c147fa72ed0e29fbdb6872e7acb25d8ada827988;hpb=92219ef4ac01b00e630b39cb19e8fbd17fdb63d0;p=ffmpeg diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index c147fa72ed0..3205f209e68 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; @@ -722,7 +722,7 @@ static int vobsub_read_header(AVFormatContext *s) int stream_id = -1; char id[64] = {0}; char alt[MAX_LINE_SIZE] = {0}; - AVInputFormat *iformat; + ff_const59 AVInputFormat *iformat; if (!vobsub->sub_name) { char *ext;