diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-23 18:42:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-23 19:04:23 +0200 |
commit | 212f129fb8c9476c10ac6aab79dcd4e9911571c2 (patch) | |
tree | 182ee3b1c1b652436a9d28f0cd5884196b5a14fb | |
parent | 3cb83b225ef1f123cc10c42bb2dc4b665aace320 (diff) | |
download | ffmpeg-212f129fb8c9476c10ac6aab79dcd4e9911571c2.tar.gz |
avidec: discard 0 packets even for sample_size==0 NI
Fixes Ticket1332
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 95b94d1f8f..49f8420693 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1292,7 +1292,7 @@ static int avi_read_idx1(AVFormatContext *s, int size) // switch to non-interleaved to get correct timestamps if(last_pos == pos) avi->non_interleaved= 1; - if((last_pos != pos || !last_len) && (len || !ast->sample_size)) { + if((last_pos != pos || !last_len) && len) { av_add_index_entry(st, pos, ast->cum_len, len, 0, (flags&AVIIF_INDEX) ? AVINDEX_KEYFRAME : 0); } ast->cum_len += get_duration(ast, len); |