From 4417f2549df8d7f61017649e30c062ef87125b7c Mon Sep 17 00:00:00 2001 From: martii Date: Mon, 4 Mar 2013 17:37:44 +0100 Subject: [PATCH] libeplayer3/container_ffmpeg: no need to scale the buffer --- libeplayer3/container/container_ffmpeg.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libeplayer3/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c index 6021acd..42905b7 100644 --- a/libeplayer3/container/container_ffmpeg.c +++ b/libeplayer3/container/container_ffmpeg.c @@ -653,8 +653,6 @@ static void FFMPEGThread(Context_t *context) { int is_planar = av_sample_fmt_is_planar(((AVStream*) audioTrack->stream)->codec->sample_fmt); int nc = ((AVStream*) audioTrack->stream)->codec->channels; - if (is_planar) - samples_size *= nc; uint8_t *samples = (unsigned char *)malloc(samples_size);