# HG changeset patch # User vitor # Date 1240848283 0 # Node ID 7a9f0be3ad644a2c7f3d9140f2bc889b3d55259a # Parent cb2eaa883d4fc471bf813ad38cc4a568f98ee4dc Skip 0x0000 frame footer in EA ADPCM decoder. diff -r cb2eaa883d4f -r 7a9f0be3ad64 adpcm.c --- 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++) {