From 4696a17def90e8c8d5a112fe16474a2ecb8faa35 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 Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/828049ccbb56abb307e255fa6f1bc3027229a849 Author: martii Date: 2013-03-04 (Mon, 04 Mar 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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);