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:
ee9d77d
)
Do not decode more data than output buffer may hold
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sat, 22 Sep 2007 09:09:47 +0000
(09:09 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sat, 22 Sep 2007 09:09:47 +0000
(09:09 +0000)
Originally committed as revision 10547 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dsicinav.c
patch
|
blob
|
history
diff --git
a/libavcodec/dsicinav.c
b/libavcodec/dsicinav.c
index
ecaa94e
..
f593a59
100644
(file)
--- a/
libavcodec/dsicinav.c
+++ b/
libavcodec/dsicinav.c
@@
-317,6
+317,8
@@
static int cinaudio_decode_frame(AVCodecContext *avctx,
uint8_t *src = buf;
int16_t *samples = (int16_t *)data;
+ buf_size = FFMIN(buf_size, *data_size/2);
+
if (cin->initial_decode_frame) {
cin->initial_decode_frame = 0;
cin->delta = (int16_t)AV_RL16(src); src += 2;