[vlc-commits] codec: lpcm: change audio format, not just codec

Francois Cartegnie git at videolan.org
Wed Mar 22 16:34:40 CET 2017


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 22 16:14:42 2017 +0100| [15e27caae829ba29610831f72a257ea944067420] | committer: Francois Cartegnie

codec: lpcm: change audio format, not just codec

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

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

diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index e040133..f2911e4 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -411,11 +411,13 @@ static block_t *DecodeFrame( 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