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.
---
 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) {
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to