]> git.sesse.net Git - vlc/commitdiff
When demuxing with ffmpeg, set the VLC block I frame flag when it is marked as such...
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 16 Apr 2008 12:47:43 +0000 (14:47 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 16 Apr 2008 12:47:43 +0000 (14:47 +0200)
modules/codec/ffmpeg/demux.c

index 04ec2c66e25706b77ddd6e9cf55f94662155a45f..ec5823f0a00c69ebb294d670ba7f5463d817c8aa 100644 (file)
@@ -311,6 +311,9 @@ static int Demux( demux_t *p_demux )
 
     memcpy( p_frame->p_buffer, pkt.data, pkt.size );
 
+    if( pkt.flags & PKT_FLAG_KEY )
+        p_frame->i_flags |= BLOCK_FLAG_TYPE_I;
+
     i_start_time = ( p_sys->ic->start_time != (int64_t)AV_NOPTS_VALUE ) ?
         ( p_sys->ic->start_time / AV_TIME_BASE )  : 0;