aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-09-04 14:57:45 +0300
committerMartin Storsjö <martin@martin.st>2012-09-04 15:32:12 +0300
commitcc86bd4ccc19d79747c76925b36d01dc7cad07d2 (patch)
tree6cfc1d3c2ebd96c8025e43a335bcbda41c691168
parent6d9e74cd4179f42a8fa860f2e08d370c7c36325f (diff)
downloadffmpeg-cc86bd4ccc19d79747c76925b36d01dc7cad07d2.tar.gz
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@martin.st>
-rw-r--r--libavcodec/proresenc.c3
1 files changed, 0 insertions, 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) {