Commit 114d47bd authored by takis's avatar takis

Return AVERROR(EINVAL) when invalid width and/or height are specified to

avcodec_open.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9770 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e78c9e84
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment