changeset 5383:8a28860d54ba libavcodec

Return AVERROR(EINVAL) when invalid width and/or height are specified to avcodec_open.
author takis
date Fri, 20 Jul 2007 15:09:10 +0000
parents 7f96f6e16f81
children 3721d0042e5a
files utils.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Fri Jul 20 15:08:10 2007 +0000
+++ b/utils.c	Fri Jul 20 15:09:10 2007 +0000
@@ -847,6 +847,7 @@
 
     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;
     }