diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-21 23:38:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-22 03:02:47 +0200 |
commit | e8931d79cc4d3a807860c0d4a223a77b149d2e9e (patch) | |
tree | a546e309e4aa5d6d2d4f5a723bcb78b45772a19a /libavformat/flvdec.c | |
parent | a4403e49b93a68f8c197615f346f2f891c35a4e5 (diff) | |
download | ffmpeg-e8931d79cc4d3a807860c0d4a223a77b149d2e9e.tar.gz |
avformat/flvdec: Accept last size if its off by 1
Fixes part of Ticket5648
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 8d9e87399d..7756d0d7b7 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -1140,7 +1140,7 @@ retry_duration: leave: last = avio_rb32(s->pb); - if (last != orig_size + 11 && + if (last != orig_size + 11 && last != orig_size + 10 && (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); |