[vlc-devel] [PATCH] araw: fix passthrough copying
Tristan Matthews
le.businessman at gmail.com
Sun Nov 10 17:29:00 CET 2013
Fixes #9343 where in->i_buffer is greater than in->i_nb_samples * sizeof(frame).
---
modules/codec/araw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/araw.c b/modules/codec/araw.c
index 0d5c300..d4bd4b0 100644
--- a/modules/codec/araw.c
+++ b/modules/codec/araw.c
@@ -739,7 +739,7 @@ static block_t *Encode( encoder_t *enc, block_t *in )
encode( out->p_buffer, in->p_buffer, in->i_nb_samples
* enc->fmt_out.audio.i_channels );
else
- memcpy( out->p_buffer, in->p_buffer, in->i_buffer );
+ memcpy( out->p_buffer, in->p_buffer, out->i_buffer );
return out;
}
--
1.8.1.2
More information about the vlc-devel
mailing list