[vlc-devel] [PATCH] MKV: set the I frame flag when we know it's a keyframe
Steve Lhomme
robUx4 at videolabs.io
Thu Feb 26 16:54:36 CET 2015
---
modules/demux/mkv/mkv.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 2d2a12a..9ae26fc 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -633,7 +633,9 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
break;
}
-
+ if ( f_mandatory )
+ p_block->i_flags |= BLOCK_FLAG_TYPE_I;
+
if( tk->fmt.i_cat != VIDEO_ES )
{
if ( tk->fmt.i_cat == NAV_ES )
--
2.2.2
More information about the vlc-devel
mailing list