projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8477f2d
)
utils.c: fix crash with threading enabled.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Mon, 6 Jun 2011 13:27:54 +0000
(09:27 -0400)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Mon, 6 Jun 2011 14:31:01 +0000
(10:31 -0400)
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index 2b417defbf154ee1ffd5b6a4d5b72ae4f7d0a60a..1e5886473d68dde6e48ff5166cbbcd2544133dd1 100644
(file)
--- 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);