X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Futils.c;h=fd757fdfcb6c6d9f2c6eda04b359c582db5583e3;hp=cd7bc1c09a204571073ae34197c408a0f2377a91;hb=7868349a9159a5e6c4cc1c1daa0a8873b6360a74;hpb=90f06ceaa0dcc9a40029d6e7438fb2291e4d351c diff --git a/libavcodec/utils.c b/libavcodec/utils.c index cd7bc1c09a..fd757fdfcb 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -847,6 +847,7 @@ int avcodec_open(AVCodecContext *avctx, AVCodec *codec) 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; }