From 28e7453c11c05f8bab3a8fa8feb7011e29274136 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sun, 25 Nov 2007 17:31:55 +0000 Subject: remove some empty close/init functions in avcodec patch by Alex Originally committed as revision 11093 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dvdsubdec.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'libavcodec/dvdsubdec.c') diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index b351e15d0d..ed50596563 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -42,11 +42,6 @@ static void yuv_a_to_rgba(const uint8_t *ycbcr, const uint8_t *alpha, uint32_t * } } -static int dvdsub_init_decoder(AVCodecContext *avctx) -{ - return 0; -} - static int decode_run_2bit(GetBitContext *gb, int *color) { unsigned int v, t; @@ -443,11 +438,6 @@ static int find_smallest_bounding_rectangle(AVSubtitle *s) return 1; } -static int dvdsub_close_decoder(AVCodecContext *avctx) -{ - return 0; -} - #ifdef DEBUG #undef fprintf static void ppm_save(const char *filename, uint8_t *bitmap, int w, int h, @@ -512,8 +502,8 @@ AVCodec dvdsub_decoder = { CODEC_TYPE_SUBTITLE, CODEC_ID_DVD_SUBTITLE, 0, - dvdsub_init_decoder, NULL, - dvdsub_close_decoder, + NULL, + NULL, dvdsub_decode, }; -- cgit v1.2.3