comparison v210dec.c @ 10396:2bb3882075b6 libavcodec

Call release_buffer on close for v210dec and v210x
author reimar
date Tue, 13 Oct 2009 18:31:22 +0000
parents a48c43551737
children d7ed9dcc78e3
comparison
equal deleted inserted replaced
10395:d02739e638cf 10396:2bb3882075b6
112 return avpkt->size; 112 return avpkt->size;
113 } 113 }
114 114
115 static av_cold int decode_close(AVCodecContext *avctx) 115 static av_cold int decode_close(AVCodecContext *avctx)
116 { 116 {
117 AVFrame *pic = avctx->coded_frame;
118 if (pic->data[0])
119 avctx->release_buffer(avctx, pic);
117 av_freep(&avctx->coded_frame); 120 av_freep(&avctx->coded_frame);
118 121
119 return 0; 122 return 0;
120 } 123 }
121 124