[vlc-devel] commit: When demuxing with ffmpeg, set the VLC block I frame flag when it is marked as such by lavf. This fixes flv restreaming without transcoding. (Antoine Cellerier )
git version control
git at videolan.org
Wed Apr 16 14:47:53 CEST 2008
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Wed Apr 16 14:47:43 2008 +0200| [cab50467abb682a996a09bf357fe1640d94db402]
When demuxing with ffmpeg, set the VLC block I frame flag when it is marked as such by lavf. This fixes flv restreaming without transcoding.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cab50467abb682a996a09bf357fe1640d94db402
---
modules/codec/ffmpeg/demux.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/codec/ffmpeg/demux.c b/modules/codec/ffmpeg/demux.c
index 04ec2c6..ec5823f 100644
--- a/modules/codec/ffmpeg/demux.c
+++ b/modules/codec/ffmpeg/demux.c
@@ -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;
More information about the vlc-devel
mailing list