git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc078f2
)
When demuxing with ffmpeg, set the VLC block I frame flag when it is marked as such...
author
Antoine Cellerier
<dionoea@videolan.org>
Wed, 16 Apr 2008 12:47:43 +0000
(14:47 +0200)
committer
Antoine Cellerier
<dionoea@videolan.org>
Wed, 16 Apr 2008 12:47:43 +0000
(14:47 +0200)
modules/codec/ffmpeg/demux.c
patch
|
blob
|
history
diff --git
a/modules/codec/ffmpeg/demux.c
b/modules/codec/ffmpeg/demux.c
index
04ec2c6
..
ec5823f
100644
(file)
--- 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;