Mercurial > libavcodec.hg
comparison dvdsubenc.c @ 5941:d030978bcd93 libavcodec
remove some empty close/init functions in avcodec
patch by Alex
author | aurel |
---|---|
date | Sun, 25 Nov 2007 17:31:55 +0000 |
parents | 50093e0b6b54 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
5940:d63186919b60 | 5941:d030978bcd93 |
---|---|
202 | 202 |
203 av_log(NULL, AV_LOG_DEBUG, "subtitle_packet size=%td\n", q - outbuf); | 203 av_log(NULL, AV_LOG_DEBUG, "subtitle_packet size=%td\n", q - outbuf); |
204 return q - outbuf; | 204 return q - outbuf; |
205 } | 205 } |
206 | 206 |
207 static int dvdsub_init_encoder(AVCodecContext *avctx) | |
208 { | |
209 return 0; | |
210 } | |
211 | |
212 static int dvdsub_close_encoder(AVCodecContext *avctx) | |
213 { | |
214 return 0; | |
215 } | |
216 | |
217 static int dvdsub_encode(AVCodecContext *avctx, | 207 static int dvdsub_encode(AVCodecContext *avctx, |
218 unsigned char *buf, int buf_size, void *data) | 208 unsigned char *buf, int buf_size, void *data) |
219 { | 209 { |
220 //DVDSubtitleContext *s = avctx->priv_data; | 210 //DVDSubtitleContext *s = avctx->priv_data; |
221 AVSubtitle *sub = data; | 211 AVSubtitle *sub = data; |
228 AVCodec dvdsub_encoder = { | 218 AVCodec dvdsub_encoder = { |
229 "dvdsub", | 219 "dvdsub", |
230 CODEC_TYPE_SUBTITLE, | 220 CODEC_TYPE_SUBTITLE, |
231 CODEC_ID_DVD_SUBTITLE, | 221 CODEC_ID_DVD_SUBTITLE, |
232 0, | 222 0, |
233 dvdsub_init_encoder, | 223 NULL, |
234 dvdsub_encode, | 224 dvdsub_encode, |
235 dvdsub_close_encoder, | |
236 }; | 225 }; |