---
 libavcodec/ac3enc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git libavcodec/ac3enc.c libavcodec/ac3enc.c
index 23e2edf..5d92b46 100644
--- libavcodec/ac3enc.c
+++ libavcodec/ac3enc.c
@@ -1488,7 +1488,7 @@ static void deinterleave_samples(AC3EncodeContext *s, const int16_t *samples)
     /* copy last 256 samples of previous frame to the start of the current frame */
     for (ch = 0; ch < s->channels; ch++) {
         memcpy(&s->planar_samples[ch][0], &s->planar_samples[ch][AC3_FRAME_SIZE],
-               AC3_BLOCK_SIZE * sizeof(int16_t));
+               AC3_BLOCK_SIZE * sizeof(s->planar_samples[0][0]));
     }
 
     /* deinterleave and remap input samples */
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to