Commit cab50467 authored by Antoine Cellerier's avatar Antoine Cellerier

When demuxing with ffmpeg, set the VLC block I frame flag when it is marked as...

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.
parent dc078f20
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment