changeset 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 d63186919b60
children 60016f2e3aa1
files dvbsub.c dvdsubdec.c dvdsubenc.c wavpack.c
diffstat 4 files changed, 5 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
--- a/dvbsub.c	Sun Nov 25 16:32:47 2007 +0000
+++ b/dvbsub.c	Sun Nov 25 17:31:55 2007 +0000
@@ -390,16 +390,6 @@
     return q - outbuf;
 }
 
-static int dvbsub_init_decoder(AVCodecContext *avctx)
-{
-    return 0;
-}
-
-static int dvbsub_close_decoder(AVCodecContext *avctx)
-{
-    return 0;
-}
-
 static int dvbsub_encode(AVCodecContext *avctx,
                        unsigned char *buf, int buf_size, void *data)
 {
@@ -416,7 +406,6 @@
     CODEC_TYPE_SUBTITLE,
     CODEC_ID_DVB_SUBTITLE,
     sizeof(DVBSubtitleContext),
-    dvbsub_init_decoder,
+    NULL,
     dvbsub_encode,
-    dvbsub_close_decoder,
 };
--- a/dvdsubdec.c	Sun Nov 25 16:32:47 2007 +0000
+++ b/dvdsubdec.c	Sun Nov 25 17:31:55 2007 +0000
@@ -42,11 +42,6 @@
     }
 }
 
-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 @@
     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 @@
     CODEC_TYPE_SUBTITLE,
     CODEC_ID_DVD_SUBTITLE,
     0,
-    dvdsub_init_decoder,
+    NULL,
     NULL,
-    dvdsub_close_decoder,
+    NULL,
     dvdsub_decode,
 };
--- a/dvdsubenc.c	Sun Nov 25 16:32:47 2007 +0000
+++ b/dvdsubenc.c	Sun Nov 25 17:31:55 2007 +0000
@@ -204,16 +204,6 @@
     return q - outbuf;
 }
 
-static int dvdsub_init_encoder(AVCodecContext *avctx)
-{
-    return 0;
-}
-
-static int dvdsub_close_encoder(AVCodecContext *avctx)
-{
-    return 0;
-}
-
 static int dvdsub_encode(AVCodecContext *avctx,
                          unsigned char *buf, int buf_size, void *data)
 {
@@ -230,7 +220,6 @@
     CODEC_TYPE_SUBTITLE,
     CODEC_ID_DVD_SUBTITLE,
     0,
-    dvdsub_init_encoder,
+    NULL,
     dvdsub_encode,
-    dvdsub_close_encoder,
 };
--- a/wavpack.c	Sun Nov 25 16:32:47 2007 +0000
+++ b/wavpack.c	Sun Nov 25 17:31:55 2007 +0000
@@ -364,13 +364,6 @@
     return 0;
 }
 
-static int wavpack_decode_close(AVCodecContext *avctx)
-{
-//    WavpackContext *s = avctx->priv_data;
-
-    return 0;
-}
-
 static int wavpack_decode_frame(AVCodecContext *avctx,
                             void *data, int *data_size,
                             uint8_t *buf, int buf_size)
@@ -587,6 +580,6 @@
     sizeof(WavpackContext),
     wavpack_decode_init,
     NULL,
-    wavpack_decode_close,
+    NULL,
     wavpack_decode_frame,
 };