[vlc-commits] lpcm: prepare dec->fmt_out

Thomas Guillem git at videolan.org
Fri Jun 29 14:46:55 CEST 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 29 14:43:20 2018 +0200| [ce3bb8755cec6e3b35d540e206686cadc7e90fb1] | committer: Jean-Baptiste Kempf

lpcm: prepare dec->fmt_out

In order to set i_bytes_per_frame and i_frame_length.

Fixes #20753

(cherry picked from commit f9b1f67b4a1c99068a1a6cf770c4b144be2cb63f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index b5ed190364..69e27270ac 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -453,6 +453,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
             p_dec->fmt_out.i_codec = VLC_CODEC_S32N;
             p_dec->fmt_out.audio.i_bitspersample = 32;
         }
+        aout_FormatPrepare(&p_dec->fmt_out.audio);
 
         /* */
         block_t *p_aout_buffer;



More information about the vlc-commits mailing list