# HG changeset patch # User takis # Date 1184944150 0 # Node ID 8a28860d54ba55bd943d59ce9c9c081132a3c782 # Parent 7f96f6e16f8145dd6fb7a3e3c5f26150115b7fc8 Return AVERROR(EINVAL) when invalid width and/or height are specified to avcodec_open. diff -r 7f96f6e16f81 -r 8a28860d54ba utils.c --- 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; }