Browse Source

avformat/flvdec: accept sizes if they are off by 11

This error was produced by rtmproto.c, it is possibly such streams
where dumped, this commit is needed to support them

Fixes: z0e.flv

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer 10 years ago
parent
commit
14f6c4356b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/flvdec.c

+ 3
- 1
libavformat/flvdec.c View File

@@ -1138,7 +1138,9 @@ retry_duration:

leave:
last = avio_rb32(s->pb);
if (last != orig_size + 11 && !flv->broken_sizes) {
if (last != orig_size + 11 &&
(last != orig_size || !last) &&
!flv->broken_sizes) {
av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d\n", last, orig_size + 11);
avio_seek(s->pb, pos + 1, SEEK_SET);
ret = resync(s);


Loading…
Cancel
Save