Mercurial > libavcodec.hg
changeset 9576:7a9f0be3ad64 libavcodec
Skip 0x0000 frame footer in EA ADPCM decoder.
author | vitor |
---|---|
date | Mon, 27 Apr 2009 16:04:43 +0000 |
parents | cb2eaa883d4f |
children | 0b4ee8aa4c11 |
files | adpcm.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/adpcm.c Mon Apr 27 12:41:41 2009 +0000 +++ b/adpcm.c Mon Apr 27 16:04:43 2009 +0000 @@ -1251,6 +1251,10 @@ *samples++ = (unsigned short)current_right_sample; } } + + if (src - buf == buf_size - 2) + src += 2; // Skip terminating 0x0000 + break; case CODEC_ID_ADPCM_EA_MAXIS_XA: for(channel = 0; channel < avctx->channels; channel++) {