X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fcafdec.c;h=a1d2ff79881746d74456fe867f44f9ce6ba12556;hb=6ea6ff053af2aff8a9a898292f9640efa9290c9f;hp=0938e1a0d795f143d2bb45e837d7081bdf0962c2;hpb=7c1aba4f01a10915d356c7bc0c6bfed25cbb623e;p=ffmpeg diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c index 0938e1a0d79..a1d2ff79881 100644 --- a/libavformat/cafdec.c +++ b/libavformat/cafdec.c @@ -292,8 +292,6 @@ static int read_header(AVFormatContext *s, "block size or frame size are variable.\n"); return AVERROR_INVALIDDATA; } - s->file_size = avio_size(pb); - s->file_size = FFMAX(0, s->file_size); av_set_pts_info(st, 64, 1, st->codec->sample_rate); st->start_time = 0;