Browse Source

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: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
257c85cddd
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/adpcm.c

+ 3
- 0
libavcodec/adpcm.c View File

@@ -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:


Loading…
Cancel
Save