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

git version control git at videolan.org
Wed Aug 27 12:09:49 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Aug 27 11:52:32 2008 +0200| [ca42ba4dec872daf49dc13996339097055ba76f3] | committer: Laurent Aimar 

Correctly set the index keyframe flag in avi muxer.

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

 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