Commit bf47c31b authored by kostya's avatar kostya

Do not decode more data than output buffer may hold

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10547 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9f1e492b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment