# HG changeset patch # User kostya # Date 1190652632 0 # Node ID c46509aca42263976f43eb460a559c92cabdb1bd # Parent 3e8764a25c538c9810a174ffa1681f206d28639c 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). diff -r 3e8764a25c53 -r c46509aca422 utils.c --- a/utils.c Mon Sep 24 13:21:41 2007 +0000 +++ b/utils.c Mon Sep 24 16:50:32 2007 +0000 @@ -962,8 +962,7 @@ return -1; } if(*frame_size_ptr < FF_MIN_BUFFER_SIZE || - *frame_size_ptr < avctx->channels * avctx->frame_size * sizeof(int16_t) || - *frame_size_ptr < buf_size){ + *frame_size_ptr < avctx->channels * avctx->frame_size * sizeof(int16_t)){ av_log(avctx, AV_LOG_ERROR, "buffer %d too small\n", *frame_size_ptr); return -1; }