[FFmpeg-cvslog] avidec: discard 0 packets even for sample_size==0 NI

Michael Niedermayer git at videolan.org
Wed May 23 19:52:43 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 23 18:42:27 2012 +0200| [212f129fb8c9476c10ac6aab79dcd4e9911571c2] | committer: Michael Niedermayer

avidec: discard 0 packets even for sample_size==0 NI

Fixes Ticket1332

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=212f129fb8c9476c10ac6aab79dcd4e9911571c2
---

 libavformat/avidec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 95b94d1..49f8420 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);



More information about the ffmpeg-cvslog mailing list