[vlc-devel] [PATCH 1/3] mpeg_audio: mark output blocks as keyframes

Steve Lhomme robux4 at videolabs.io
Mon Aug 8 14:39:49 CEST 2016


---
 modules/codec/mpeg_audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/mpeg_audio.c b/modules/codec/mpeg_audio.c
index 9cb4f4f..50c73ea 100644
--- a/modules/codec/mpeg_audio.c
+++ b/modules/codec/mpeg_audio.c
@@ -465,6 +465,8 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                 //p_dec->b_error = true;
                 return NULL;
             }
+            if (p_out_buffer)
+                p_out_buffer->i_flags |= BLOCK_FLAG_TYPE_I;
 
             /* Free bitrate only */
             if( p_sys->i_bit_rate == 0 )
-- 
2.8.2



More information about the vlc-devel mailing list