X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fflvdec.c;h=2bf1e059e1cbeeb79e4af9542da23f4560e1cf59;hb=2c1d0f871f6a3ee851f7094cc9946652ba1788ab;hp=51c4cd6cec5cd1d91a2b9d332c7392047fbfcf70;hpb=ba5100ce84644923537f997dea39bf2e7b4b9c20;p=ffmpeg diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 51c4cd6cec5..2bf1e059e1c 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -4,8 +4,8 @@ * * This demuxer will generate a 1 byte extradata for VP6F content. * It is composed of: - * - upper 4bits: difference between encoded width and visible width - * - lower 4bits: difference between encoded height and visible height + * - upper 4 bits: difference between encoded width and visible width + * - lower 4 bits: difference between encoded height and visible height * * This file is part of FFmpeg. * @@ -1140,10 +1140,11 @@ retry_duration: leave: last = avio_rb32(s->pb); - if (last != orig_size + 11 && + if (last != orig_size + 11 && last != orig_size + 10 && + !avio_feof(s->pb) && (last != orig_size || !last) && last != flv->sum_flv_tag_size && !flv->broken_sizes) { - av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d\n", last, orig_size + 11); + av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d %d\n", last, orig_size + 11, flv->sum_flv_tag_size); avio_seek(s->pb, pos + 1, SEEK_SET); ret = resync(s); av_packet_unref(pkt);