diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-31 05:08:25 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-31 05:08:25 +0400 |
commit | 227a0eb5a92409572f2cecde6137529b83e7d495 (patch) | |
tree | b6c441bb1c684afdc5c704e3e368ac0962b836ce /libavformat/avidec.c | |
parent | 454a11a1c9c686c78aa97954306fb63453299760 (diff) |
avformat/avidec: match first index and first packet size=0 handling
Fixes Ticket2861
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 2827064331..0aaa5a6f93 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -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; } |