diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-30 17:42:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-30 17:42:58 +0000 |
commit | eea8c08fa82791378bd33769992a7435409394b7 (patch) | |
tree | 856b7010b12a81933b870227904c037b113313d7 /libavcodec/ffv1.c | |
parent | 60f41d13efd52488f9dc91edd047bb909d6a53c7 (diff) | |
download | ffmpeg-eea8c08fa82791378bd33769992a7435409394b7.tar.gz |
cleanup & memleak fix
Originally committed as revision 3095 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r-- | libavcodec/ffv1.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index eefce93705..aacbe3ed68 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -1018,22 +1018,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8 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 @@ AVCodec ffv1_decoder = { sizeof(FFV1Context), decode_init, NULL, - decode_end, + NULL, decode_frame, CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/, NULL |