Browse Source

avformat/avidec: Workaround broken initial frame

Fixes Ticket4851

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3e2ef00394)
tags/n2.8.1
Michael Niedermayer Carl Eugen Hoyos 10 years ago
parent
commit
7ec05ae969
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/avidec.c

+ 2
- 1
libavformat/avidec.c View File

@@ -1581,7 +1581,8 @@ static int avi_read_idx1(AVFormatContext *s, int size)
ast = st->priv_data;

if (first_packet && first_packet_pos) {
data_offset = first_packet_pos - pos;
if (avi->movi_list + 4 != pos || pos + 500 > first_packet_pos)
data_offset = first_packet_pos - pos;
first_packet = 0;
}
pos += data_offset;


Loading…
Cancel
Save