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

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-06-06 17:27:54 +0400
committerRonald S. Bultje <rsbultje@gmail.com>2011-06-06 18:31:01 +0400
commitceff045dbecb63bbe42da6d7d33f614ae67fbebd (patch)
treee8e96d8b3e858da073e676b84cf101b86ffc5941 /libavcodec/utils.c
parent8477f2deefbebe7dab9dce4c9ed5f3bc8030206d (diff)
utils.c: fix crash with threading enabled.
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 2b417defbf..1e5886473d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -783,7 +783,7 @@ av_cold int avcodec_close(AVCodecContext *avctx)
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);
avctx->coded_frame = NULL;
- if (avctx->codec->priv_class)
+ if (avctx->codec && avctx->codec->priv_class)
av_opt_free(avctx->priv_data);
av_opt_free(avctx);
av_freep(&avctx->priv_data);