Module: libav Branch: master Commit: cc86bd4ccc19d79747c76925b36d01dc7cad07d2
Author: Martin Storsjö <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Tue Sep 4 14:57:45 2012 +0300 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ö <[email protected]> --- libavcodec/proresenc.c | 3 --- 1 files changed, 0 insertions(+), 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) { _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
