mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-29 00:10:57 +02:00
libeplayer3/container_ffmpeg: no need to scale the buffer
Origin commit data
------------------
Branch: master
Commit: 828049ccbb
Author: martii <m4rtii@gmx.de>
Date: 2013-03-04 (Mon, 04 Mar 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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 is_planar = av_sample_fmt_is_planar(((AVStream*) audioTrack->stream)->codec->sample_fmt);
|
||||||
int nc = ((AVStream*) audioTrack->stream)->codec->channels;
|
int nc = ((AVStream*) audioTrack->stream)->codec->channels;
|
||||||
if (is_planar)
|
|
||||||
samples_size *= nc;
|
|
||||||
|
|
||||||
uint8_t *samples = (unsigned char *)malloc(samples_size);
|
uint8_t *samples = (unsigned char *)malloc(samples_size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user