Commit 21c27028 authored by reimar's avatar reimar

Check for avcodec_open codec parameter == NULL and return error in that case


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11316 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8684890e
......@@ -848,7 +848,7 @@ int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
goto end;
}
if(avctx->codec)
if(avctx->codec || !codec)
goto end;
if (codec->priv_data_size > 0) {
......
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