Mercurial > libavcodec.hg
diff ffv1.c @ 1994:8d3540dddd1b libavcodec
cleanup & memleak fix
author | michael |
---|---|
date | Fri, 30 Apr 2004 17:42:58 +0000 |
parents | e20fd60b215c |
children | 18d5eb75ae71 |
line wrap: on
line diff
--- a/ffv1.c Fri Apr 30 16:06:20 2004 +0000 +++ b/ffv1.c Fri Apr 30 17:42:58 2004 +0000 @@ -1018,22 +1018,6 @@ return bytes_read; } -static int decode_end(AVCodecContext *avctx) -{ - FFV1Context *s = avctx->priv_data; - int i; - - if(avctx->get_buffer == avcodec_default_get_buffer){ - for(i=0; i<4; i++){ - av_freep(&s->picture.base[i]); - s->picture.data[i]= NULL; - } - av_freep(&s->picture.opaque); - } - - return 0; -} - AVCodec ffv1_decoder = { "ffv1", CODEC_TYPE_VIDEO, @@ -1041,7 +1025,7 @@ sizeof(FFV1Context), decode_init, NULL, - decode_end, + NULL, decode_frame, CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/, NULL