Commit a7f2ea03 authored by kostya's avatar kostya

Remove check for input buffer size as it does not guarantee that

decoder will not run out of output buffer bounds (and all suspected
decoders have their own checks now).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10567 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 60488165
...@@ -962,8 +962,7 @@ int attribute_align_arg avcodec_decode_audio2(AVCodecContext *avctx, int16_t *sa ...@@ -962,8 +962,7 @@ int attribute_align_arg avcodec_decode_audio2(AVCodecContext *avctx, int16_t *sa
return -1; return -1;
} }
if(*frame_size_ptr < FF_MIN_BUFFER_SIZE || if(*frame_size_ptr < FF_MIN_BUFFER_SIZE ||
*frame_size_ptr < avctx->channels * avctx->frame_size * sizeof(int16_t) || *frame_size_ptr < avctx->channels * avctx->frame_size * sizeof(int16_t)){
*frame_size_ptr < buf_size){
av_log(avctx, AV_LOG_ERROR, "buffer %d too small\n", *frame_size_ptr); av_log(avctx, AV_LOG_ERROR, "buffer %d too small\n", *frame_size_ptr);
return -1; return -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