X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmlvdec.c;h=dae13cae53a1e23438db9b68fc84c70f65e86339;hb=de0b04551da4e1470ce1c99321a768887df8c650;hp=ded8196af23776c628295d03024a2ca0e00d538a;hpb=fef55251d82ca1043689dddf5d03aa96c75cd4bb;p=ffmpeg diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c index ded8196af23..dae13cae53a 100644 --- a/libavformat/mlvdec.c +++ b/libavformat/mlvdec.c @@ -52,7 +52,7 @@ typedef struct { uint64_t pts; } MlvContext; -static int probe(AVProbeData *p) +static int probe(const AVProbeData *p) { if (AV_RL32(p->buf) == MKTAG('M','L','V','I') && AV_RL32(p->buf + 4) >= 52 && @@ -462,8 +462,7 @@ static int read_close(AVFormatContext *s) MlvContext *mlv = s->priv_data; int i; for (i = 0; i < 100; i++) - if (mlv->pb[i]) - ff_format_io_close(s, &mlv->pb[i]); + ff_format_io_close(s, &mlv->pb[i]); return 0; }