comparison cljr.c @ 1994:8d3540dddd1b libavcodec

cleanup & memleak fix
author michael
date Fri, 30 Apr 2004 17:42:58 +0000
parents 932d306bf1dc
children 141a9539e270
comparison
equal deleted inserted replaced
1993:5086ee0ea559 1994:8d3540dddd1b
131 common_init(avctx); 131 common_init(avctx);
132 132
133 return 0; 133 return 0;
134 } 134 }
135 135
136 static int decode_end(AVCodecContext *avctx){
137
138 avcodec_default_free_buffers(avctx);
139
140 return 0;
141 }
142
143 AVCodec cljr_decoder = { 136 AVCodec cljr_decoder = {
144 "cljr", 137 "cljr",
145 CODEC_TYPE_VIDEO, 138 CODEC_TYPE_VIDEO,
146 CODEC_ID_CLJR, 139 CODEC_ID_CLJR,
147 sizeof(CLJRContext), 140 sizeof(CLJRContext),
148 decode_init, 141 decode_init,
149 NULL, 142 NULL,
150 decode_end, 143 NULL,
151 decode_frame, 144 decode_frame,
152 CODEC_CAP_DR1, 145 CODEC_CAP_DR1,
153 }; 146 };
154 #if 0 147 #if 0
155 #ifdef CONFIG_ENCODERS 148 #ifdef CONFIG_ENCODERS