Browse Source

avcodec/adpcm: ADPCM_IMA_DK3 packets are padded to 16-bit packet boundary

Fixes ticket #3461.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Peter Ross Michael Niedermayer 12 years ago
parent
commit
d1bb17940d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/adpcm.c

+ 3
- 0
libavcodec/adpcm.c View File

@@ -922,6 +922,9 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
*samples++ = c->status[0].predictor + c->status[1].predictor;
*samples++ = c->status[0].predictor - c->status[1].predictor;
}

if ((bytestream2_tell(&gb) & 1))
bytestream2_skip(&gb, 1);
break;
}
case AV_CODEC_ID_ADPCM_IMA_ISS:


Loading…
Cancel
Save