Commit cc86bd4c authored by Martin Storsjö's avatar 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: 's avatarMartin Storsjö <martin@martin.st>
parent 6d9e74cd
...@@ -867,9 +867,6 @@ static av_cold int encode_close(AVCodecContext *avctx) ...@@ -867,9 +867,6 @@ static av_cold int encode_close(AVCodecContext *avctx)
ProresContext *ctx = avctx->priv_data; ProresContext *ctx = avctx->priv_data;
int i; int i;
if (avctx->coded_frame->data[0])
avctx->release_buffer(avctx, avctx->coded_frame);
av_freep(&avctx->coded_frame); av_freep(&avctx->coded_frame);
if (ctx->tdata) { if (ctx->tdata) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment