Commit e8931d79 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/flvdec: Accept last size if its off by 1

Fixes part of Ticket5648
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a4403e49
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment