OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2100348
)
Fix segfault when encoder initialization fails.
author
Craig Thomasson
<craig.thomasson@ripcode.com>
Tue, 6 Apr 2010 09:52:41 +0000
(09:52 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Tue, 6 Apr 2010 09:52:41 +0000
(09:52 +0000)
Patch by Craig Thomasson $(name) dot $(surname) ripcode com
Originally committed as revision 22811 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
52aa672
..
8b4b363
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-710,7
+710,7
@@
av_cold int avcodec_close(AVCodecContext *avctx)
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);
av_freep(&avctx->priv_data);
- if(avctx->codec->encode)
+ if(avctx->codec
&& avctx->codec
->encode)
av_freep(&avctx->extradata);
avctx->codec = NULL;
entangled_thread_counter--;