Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-06 05:00:12 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-12-06 05:52:46 +0400
commit2dec950f49049b55a4d4147673824dc817cb27e5 (patch)
tree5b9499346b00f2f6ad688b4e7b42f71a744ec24b /libavcodec/utils.c
parent0393cf15dbe3b136647b81676a105815924eebcd (diff)
avcodec_open: if obtaining a lock fails, dont attempt to unlock it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index fc56d69b31..131c156a6c 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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) {