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:
521cfa4
)
Set coded_frame to NULL when closing a codec, since it might
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 12 May 2010 17:05:56 +0000
(17:05 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 12 May 2010 17:05:56 +0000
(17:05 +0000)
be invalid after the codec is "gone".
Originally committed as revision 23101 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
87facec
..
3badebe
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-709,6
+709,7
@@
av_cold int avcodec_close(AVCodecContext *avctx)
if (avctx->codec && avctx->codec->close)
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);
+ avctx->coded_frame = NULL;
av_freep(&avctx->priv_data);
if(avctx->codec && avctx->codec->encode)
av_freep(&avctx->extradata);