[vlc-devel] [PATCH 1/2] packetizer: a52: switch to EAC3 when a substream is parsed

Thomas Guillem thomas at gllm.fr
Thu Oct 3 13:15:42 CEST 2019


---
 modules/packetizer/a52.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/packetizer/a52.c b/modules/packetizer/a52.c
index 91afafcf54..2a8939991e 100644
--- a/modules/packetizer/a52.c
+++ b/modules/packetizer/a52.c
@@ -258,7 +258,10 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
             vlc_a52_header_t a52;
             if( !vlc_a52_header_Parse( &a52, p_header, VLC_A52_MIN_HEADER_SIZE )
              && a52.b_eac3 && a52.bs.eac3.strmtyp == EAC3_STRMTYP_DEPENDENT )
+            {
                 p_sys->i_input_size += a52.i_size;
+                p_dec->fmt_out.i_codec = VLC_CODEC_EAC3;
+            }
 
             p_sys->i_state = STATE_GET_DATA;
             break;
-- 
2.20.1



More information about the vlc-devel mailing list