[vlc-commits] araw: fix samples count on raw audio

Rémi Denis-Courmont git at videolan.org
Tue Aug 6 21:27:02 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  6 22:26:36 2013 +0300| [47376e177707bfe585959911971de3e69fe841f4] | committer: Rémi Denis-Courmont

araw: fix samples count on raw audio

(regression from 46f782a9f775156c1f9e53a39632e28e9854c6ef)

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

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

diff --git a/modules/codec/araw.c b/modules/codec/araw.c
index 87d853d..1a99c7f 100644
--- a/modules/codec/araw.c
+++ b/modules/codec/araw.c
@@ -332,6 +332,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     else
     {
         decoder_UpdateAudioFormat( p_dec );
+        p_block->i_nb_samples = samples;
         p_block->i_buffer = samples * (p_sys->framebits / 8);
     }
 



More information about the vlc-commits mailing list