proresenc_kostya: do not attempt to free random things
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Aug 2012 23:11:28 +0000 (01:11 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Aug 2012 23:11:28 +0000 (01:11 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/proresenc_kostya.c

index 7755d71..638098c 100644 (file)
@@ -834,9 +834,6 @@ static av_cold int encode_close(AVCodecContext *avctx)
     ProresContext *ctx = avctx->priv_data;
     int i;
 
     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) {
     av_freep(&avctx->coded_frame);
 
     if (ctx->tdata) {