Commit 227a0eb5 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avidec: match first index and first packet size=0 handling

Fixes Ticket2861
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 454a11a1
......@@ -1423,7 +1423,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
st = s->streams[index];
ast = st->priv_data;
if (first_packet && first_packet_pos && len) {
if (first_packet && first_packet_pos) {
data_offset = first_packet_pos - pos;
first_packet = 0;
}
......
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