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

takis subversion
Fri Jul 20 17:09:10 CEST 2007


Author: takis
Date: Fri Jul 20 17:09:10 2007
New Revision: 9770

Log:
Return AVERROR(EINVAL) when invalid width and/or height are specified to
avcodec_open.


Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Fri Jul 20 17:09:10 2007
@@ -847,6 +847,7 @@ int avcodec_open(AVCodecContext *avctx, 
 
     if((avctx->coded_width||avctx->coded_height) && avcodec_check_dimensions(avctx,avctx->coded_width,avctx->coded_height)){
         av_freep(&avctx->priv_data);
+        ret = AVERROR(EINVAL);
         goto end;
     }
 




More information about the ffmpeg-cvslog mailing list