libeplayer3/container_ffmpeg: no need to scale the buffer

This commit is contained in:
martii
2013-03-04 17:37:44 +01:00
committed by Stefan Seyfried
parent a01b70f226
commit 824b328ec1

View File

@@ -626,8 +626,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);