mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3/container_ffmpeg: no need to scale the buffer
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user