mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avformat/avidec: Workaround broken initial frame
Fixes Ticket4851 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 3e2ef00394b8079e93835d47c993868229f07502)
This commit is contained in:
parent
3cc3d239f2
commit
108a971cd2
@ -1572,6 +1572,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
|
|||||||
ast = st->priv_data;
|
ast = st->priv_data;
|
||||||
|
|
||||||
if (first_packet && first_packet_pos) {
|
if (first_packet && first_packet_pos) {
|
||||||
|
if (avi->movi_list + 4 != pos || pos + 500 > first_packet_pos)
|
||||||
data_offset = first_packet_pos - pos;
|
data_offset = first_packet_pos - pos;
|
||||||
first_packet = 0;
|
first_packet = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user