[vlc-commits] lpcm: prepare dec->fmt_out
Thomas Guillem
git at videolan.org
Fri Jun 29 14:45:00 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 29 14:43:20 2018 +0200| [f9b1f67b4a1c99068a1a6cf770c4b144be2cb63f] | committer: Thomas Guillem
lpcm: prepare dec->fmt_out
In order to set i_bytes_per_frame and i_frame_length.
Fixes #20753
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f9b1f67b4a1c99068a1a6cf770c4b144be2cb63f
---
modules/codec/lpcm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index 9cf3e5d556..fc8bf1c25b 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -455,6 +455,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