summaryrefslogtreecommitdiff
path: root/libavcodec/dvdsubdec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-11-25 17:31:55 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-11-25 17:31:55 +0000
commit28e7453c11c05f8bab3a8fa8feb7011e29274136 (patch)
tree84e435a63d5afe37f26c151e3154f0105b9b7e84 /libavcodec/dvdsubdec.c
parent725d86bfd52fdecb4d24fc6c62201064071f4c82 (diff)
remove some empty close/init functions in avcodec
patch by Alex Originally committed as revision 11093 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvdsubdec.c')
-rw-r--r--libavcodec/dvdsubdec.c14
1 files changed, 2 insertions, 12 deletions
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,
};