OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b78c8e2
)
Skip 0x0000 frame footer in EA ADPCM decoder.
author
Vitor Sessak
<vitor1001@gmail.com>
Mon, 27 Apr 2009 16:04:43 +0000
(16:04 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Mon, 27 Apr 2009 16:04:43 +0000
(16:04 +0000)
Originally committed as revision 18706 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/adpcm.c
patch
|
blob
|
history
diff --git
a/libavcodec/adpcm.c
b/libavcodec/adpcm.c
index
a72ee20
..
d923fbe
100644
(file)
--- a/
libavcodec/adpcm.c
+++ b/
libavcodec/adpcm.c
@@
-1251,6
+1251,10
@@
static int adpcm_decode_frame(AVCodecContext *avctx,
*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++) {