From cc86bd4ccc19d79747c76925b36d01dc7cad07d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 4 Sep 2012 14:57:45 +0300 Subject: [PATCH] proresenc: Don't free a buffer not owned by the codec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavcodec/proresenc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/proresenc.c b/libavcodec/proresenc.c index f4feed5ee4..86def00819 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) {