mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-02 05:56:46 +08:00
get data size based on the actual data array instead of coding-in the calculation
Originally committed as revision 14859 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -657,7 +657,7 @@ void ff_ac3_downmix_c(float (*samples)[256], float (*matrix)[2], int out_ch, int
|
|||||||
*/
|
*/
|
||||||
static void ac3_upmix_delay(AC3DecodeContext *s)
|
static void ac3_upmix_delay(AC3DecodeContext *s)
|
||||||
{
|
{
|
||||||
int channel_data_size = 128*sizeof(float);
|
int channel_data_size = sizeof(s->delay[0]);
|
||||||
switch(s->channel_mode) {
|
switch(s->channel_mode) {
|
||||||
case AC3_CHMODE_DUALMONO:
|
case AC3_CHMODE_DUALMONO:
|
||||||
case AC3_CHMODE_STEREO:
|
case AC3_CHMODE_STEREO:
|
||||||
|
Reference in New Issue
Block a user