Commit 257c85cd authored by Michael Niedermayer's avatar Michael Niedermayer

adpcm: fix division by zero in fate/creative/intro-partial.wav with -s 2 and -r 0.001:1

Bug-Found-by: Shitiz Garg
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 337ce558
......@@ -340,6 +340,9 @@ static int get_nb_samples(AVCodecContext *avctx, const uint8_t *buf,
*coded_samples = 0;
if(ch <= 0)
return 0;
switch (avctx->codec->id) {
/* constant, only check buf_size */
case CODEC_ID_ADPCM_EA_XAS:
......
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