[FFmpeg-cvslog] proresenc: Don't free a buffer not owned by the codec
Martin Storsjö
git at videolan.org
Tue Sep 4 17:15:03 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Sep 4 14:57:45 2012 +0300| [cc86bd4ccc19d79747c76925b36d01dc7cad07d2] | committer: Martin Storsjö
proresenc: Don't free a buffer not owned by the codec
The data in coded_frame isn't allocated using get_buffer, but
is copied from the input frame to the encoder, so we should
not try to free it ourselves.
This fixes an assert failure when running in debug mode.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc86bd4ccc19d79747c76925b36d01dc7cad07d2
---
libavcodec/proresenc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/proresenc.c b/libavcodec/proresenc.c
index f4feed5..86def00 100644
--- a/libavcodec/proresenc.c
+++ b/libavcodec/proresenc.c
@@ -867,9 +867,6 @@ static av_cold int encode_close(AVCodecContext *avctx)
ProresContext *ctx = avctx->priv_data;
int i;
- if (avctx->coded_frame->data[0])
- avctx->release_buffer(avctx, avctx->coded_frame);
-
av_freep(&avctx->coded_frame);
if (ctx->tdata) {
More information about the ffmpeg-cvslog
mailing list