[FFmpeg-cvslog] r10567 - trunk/libavcodec/utils.c

kostya subversion
Mon Sep 24 18:50:33 CEST 2007


Author: kostya
Date: Mon Sep 24 18:50:32 2007
New Revision: 10567

Log:
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).


Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Mon Sep 24 18:50:32 2007
@@ -962,8 +962,7 @@ int attribute_align_arg avcodec_decode_a
             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;
         }




More information about the ffmpeg-cvslog mailing list