# HG changeset patch # User michael # Date 1110979612 0 # Node ID 594a9b0cacf55daa0033f2de1326603203482b72 # Parent 500654895ab794c20319ba46d13f63a2d5830da5 reverse zero packet dissapearence "feature" diff -r 500654895ab7 -r 594a9b0cacf5 avidec.c --- a/avidec.c Tue Mar 15 23:50:24 2005 +0000 +++ b/avidec.c Wed Mar 16 13:26:52 2005 +0000 @@ -416,8 +416,6 @@ AVIStream *ast= st->priv_data; int size; - assert(ast->remaining); - if(ast->sample_size == 0) size= INT_MAX; else if(ast->sample_size < 32) @@ -528,7 +526,7 @@ } //parse ##dc/##wb - if(n < s->nb_streams && size){ + if(n < s->nb_streams){ AVStream *st; AVIStream *ast; st = s->streams[n]; @@ -632,14 +630,14 @@ #if defined(DEBUG_SEEK) av_log(NULL, AV_LOG_DEBUG, "%d cum_len=%d\n", len, ast->cum_len); #endif - if(len) + if(last_pos == pos) + avi->non_interleaved= 1; + else av_add_index_entry(st, pos, ast->cum_len, 0, (flags&AVIIF_INDEX) ? AVINDEX_KEYFRAME : 0); if(ast->sample_size) ast->cum_len += len / ast->sample_size; else ast->cum_len ++; - if(last_pos == pos) - avi->non_interleaved= 1; last_pos= pos; } return 0;