You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/avidec: match first index and first packet size=0 handling
Fixes Ticket2861 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1423,7 +1423,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
|
|||||||
st = s->streams[index];
|
st = s->streams[index];
|
||||||
ast = st->priv_data;
|
ast = st->priv_data;
|
||||||
|
|
||||||
if (first_packet && first_packet_pos && len) {
|
if (first_packet && first_packet_pos) {
|
||||||
data_offset = first_packet_pos - pos;
|
data_offset = first_packet_pos - pos;
|
||||||
first_packet = 0;
|
first_packet = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user