[vlc-commits] codec: lpcm: set both format and codec on update

Francois Cartegnie git at videolan.org
Wed Mar 22 16:37:18 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 22 16:35:29 2017 +0100| [ffe4ce8038bd3e92dd3ac0719573bdfe818c1bf5] | committer: Francois Cartegnie

codec: lpcm: set both format and codec on update

since there's no guarantee aout_update_format is
pf_aout_format_update

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ffe4ce8038bd3e92dd3ac0719573bdfe818c1bf5
---

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

diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index 5de1846..b7210f9 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -447,11 +447,13 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
         /* */
         if( i_bits == 16 )
         {
+            p_dec->fmt_out.audio.i_format =
             p_dec->fmt_out.i_codec = VLC_CODEC_S16N;
             p_dec->fmt_out.audio.i_bitspersample = 16;
         }
         else
         {
+            p_dec->fmt_out.audio.i_format =
             p_dec->fmt_out.i_codec = VLC_CODEC_S32N;
             p_dec->fmt_out.audio.i_bitspersample = 32;
         }



More information about the vlc-commits mailing list