[FFmpeg-cvslog] r18706 - trunk/libavcodec/adpcm.c
vitor
subversion
Mon Apr 27 18:04:44 CEST 2009
Author: vitor
Date: Mon Apr 27 18:04:43 2009
New Revision: 18706
Log:
Skip 0x0000 frame footer in EA ADPCM decoder.
Modified:
trunk/libavcodec/adpcm.c
Modified: trunk/libavcodec/adpcm.c
==============================================================================
--- trunk/libavcodec/adpcm.c Mon Apr 27 14:41:41 2009 (r18705)
+++ trunk/libavcodec/adpcm.c Mon Apr 27 18:04:43 2009 (r18706)
@@ -1251,6 +1251,10 @@ static int adpcm_decode_frame(AVCodecCon
*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++) {
More information about the ffmpeg-cvslog
mailing list