Commit 2dec950f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec_open: if obtaining a lock fails, dont attempt to unlock it.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0393cf15
......@@ -803,7 +803,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
ret = ff_lock_avcodec(avctx);
if (ret < 0)
goto end;
return ret;
avctx->internal = av_mallocz(sizeof(AVCodecInternal));
if (!avctx->internal) {
......
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