Commit 7ec05ae9 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Carl Eugen Hoyos

avformat/avidec: Workaround broken initial frame

Fixes Ticket4851
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3e2ef003)
parent b9841ba9
......@@ -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;
......
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