[vlc-commits] codec: liba52: fix wrong output size
Thomas Guillem
git at videolan.org
Mon Aug 29 15:51:34 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Aug 29 15:49:49 2016 +0200| [c7b91b54662ac07a307bbc56b03bc3d09ef07f2c] | committer: Thomas Guillem
codec: liba52: fix wrong output size
decoder_NewAudioBuffer expects samples while we gave bytes.
Fixes #17319
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7b91b54662ac07a307bbc56b03bc3d09ef07f2c
---
modules/codec/liba52.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/liba52.c b/modules/codec/liba52.c
index 7f27779..880cb18 100644
--- a/modules/codec/liba52.c
+++ b/modules/codec/liba52.c
@@ -173,7 +173,7 @@ static block_t *Decode( decoder_t *p_dec, block_t **pp_block )
/* Every A/52 frame is composed of 6 blocks, each with an output of 256
* samples for each channel. */
- block_t *p_out_buf = decoder_NewAudioBuffer( p_dec, 6 * i_bytes_per_block );
+ block_t *p_out_buf = block_Alloc( 6 * i_bytes_per_block );
if( unlikely(p_out_buf == NULL) )
goto out;
More information about the vlc-commits
mailing list