avformat/avidec: match first index and first packet size=0 handling
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 31 Aug 2013 01:08:25 +0000 (03:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 31 Aug 2013 01:08:25 +0000 (03:08 +0200)
Fixes Ticket2861

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c

index 2827064..0aaa5a6 100644 (file)
@@ -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;
         }