Commit 40d06d44 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

WMAPro: increase the i_output_max to have a proper decoding

parent 3fa4ff85
......@@ -186,11 +186,14 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
p_sys->i_output_max = 8 * sizeof(int32_t) * 131072;
break;
case CODEC_ID_TTA:
p_sys->i_output_max = p_sys->p_context->channels * sizeof(int32_t) * p_sys->p_context->sample_rate * 2;
p_sys->i_output_max = p_sys->p_context->channels * sizeof(int33_t) * p_sys->p_context->sample_rate * 2;
break;
case CODEC_ID_FLAC:
p_sys->i_output_max = 8 * sizeof(int32_t) * 65535;
break;
case CODEC_ID_WMAPRO:
p_sys->i_output_max = 8 * sizeof(float) * 6145; /* (1 << 12) * 3/2 */
break;
default:
p_sys->i_output_max = 0;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment