[vlc-devel] commit: Correctly set the index keyframe flag in avi muxer. (Laurent Aimar )

git version control git at videolan.org
Wed Aug 27 18:33:42 CEST 2008


vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed Aug 27 11:52:32 2008 +0200| [922455d303e66978a253eaeb6e7617f618c815bb] | committer: Jean-Baptiste Kempf 

Correctly set the index keyframe flag in avi muxer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=922455d303e66978a253eaeb6e7617f618c815bb
---

 modules/mux/avi.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/mux/avi.c b/modules/mux/avi.c
index 4514e72..e12019e 100644
--- a/modules/mux/avi.c
+++ b/modules/mux/avi.c
@@ -474,7 +474,9 @@ static int Mux      ( sout_mux_t *p_mux )
             /* add idx1 entry for this frame */
             p_idx = &p_sys->idx1.entry[p_sys->idx1.i_entry_count];
             memcpy( p_idx->fcc, p_stream->fcc, 4 );
-            p_idx->i_flags = AVIIF_KEYFRAME;
+            p_idx->i_flags = 0;
+            if( ( p_data->i_flags & BLOCK_FLAG_TYPE_MASK ) == 0 || ( p_data->i_flags & BLOCK_FLAG_TYPE_I ) )
+                p_idx->i_flags = AVIIF_KEYFRAME;
             p_idx->i_pos   = p_sys->i_movi_size + 4;
             p_idx->i_length= p_data->i_buffer;
             p_sys->idx1.i_entry_count++;




More information about the vlc-devel mailing list