changeset 18050:d437b070b8a7

zero sized frames are not keyframes
author michael
date Thu, 06 Apr 2006 20:36:39 +0000
parents 77a3b0d11ca5
children 110105412f8f
files libmpdemux/aviheader.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviheader.c	Thu Apr 06 20:04:02 2006 +0000
+++ b/libmpdemux/aviheader.c	Thu Apr 06 20:36:39 2006 +0000
@@ -646,6 +646,8 @@
     
     c=stream_read_dword(demuxer->stream);
 
+    if(!len) idx->dwFlags&=~AVIIF_KEYFRAME;
+
     // Fix keyframes for DivX files:
     if(idxfix_divx)
       if(avi_stream_id(id)==idxfix_videostream){