Commit e1849acc authored by michael's avatar michael

buffer overflow


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3954 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 18e5b390
......@@ -299,6 +299,9 @@ static int pcm_decode_frame(AVCodecContext *avctx,
samples = data;
src = buf;
if(buf_size > AVCODEC_MAX_AUDIO_FRAME_SIZE/2)
buf_size = AVCODEC_MAX_AUDIO_FRAME_SIZE/2;
switch(avctx->codec->id) {
case CODEC_ID_PCM_S16LE:
n = buf_size >> 1;
......
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