Patch by Steve LHomme Original thread: Date: 13.10.2006 21:55 Subject: [Ffmpeg-devel] [PATCH] Remove empty structures Originally committed as revision 6690 to svn://svn.ffmpeg.org/ffmpeg/trunktags/v0.5
| @@ -22,9 +22,6 @@ | |||||
| //#define DEBUG | //#define DEBUG | ||||
| typedef struct DVDSubContext { | |||||
| } DVDSubContext; | |||||
| static int dvdsub_init_decoder(AVCodecContext *avctx) | static int dvdsub_init_decoder(AVCodecContext *avctx) | ||||
| { | { | ||||
| return 0; | return 0; | ||||
| @@ -412,7 +409,7 @@ AVCodec dvdsub_decoder = { | |||||
| "dvdsub", | "dvdsub", | ||||
| CODEC_TYPE_SUBTITLE, | CODEC_TYPE_SUBTITLE, | ||||
| CODEC_ID_DVD_SUBTITLE, | CODEC_ID_DVD_SUBTITLE, | ||||
| sizeof(DVDSubContext), | |||||
| 0, | |||||
| dvdsub_init_decoder, | dvdsub_init_decoder, | ||||
| NULL, | NULL, | ||||
| dvdsub_close_decoder, | dvdsub_close_decoder, | ||||
| @@ -23,9 +23,6 @@ | |||||
| #undef NDEBUG | #undef NDEBUG | ||||
| #include <assert.h> | #include <assert.h> | ||||
| typedef struct DVDSubtitleContext { | |||||
| } DVDSubtitleContext; | |||||
| // ncnt is the nibble counter | // ncnt is the nibble counter | ||||
| #define PUTNIBBLE(val)\ | #define PUTNIBBLE(val)\ | ||||
| do {\ | do {\ | ||||
| @@ -239,7 +236,7 @@ AVCodec dvdsub_encoder = { | |||||
| "dvdsub", | "dvdsub", | ||||
| CODEC_TYPE_SUBTITLE, | CODEC_TYPE_SUBTITLE, | ||||
| CODEC_ID_DVD_SUBTITLE, | CODEC_ID_DVD_SUBTITLE, | ||||
| sizeof(DVDSubtitleContext), | |||||
| 0, | |||||
| dvdsub_init_encoder, | dvdsub_init_encoder, | ||||
| dvdsub_encode, | dvdsub_encode, | ||||
| dvdsub_close_encoder, | dvdsub_close_encoder, | ||||
| @@ -29,9 +29,6 @@ | |||||
| * http://www.multimedia.cx | * http://www.multimedia.cx | ||||
| */ | */ | ||||
| typedef struct { | |||||
| } WSSNDContext; | |||||
| static const char ws_adpcm_2bit[] = { -2, -1, 0, 1}; | static const char ws_adpcm_2bit[] = { -2, -1, 0, 1}; | ||||
| static const char ws_adpcm_4bit[] = { | static const char ws_adpcm_4bit[] = { | ||||
| -9, -8, -6, -5, -4, -3, -2, -1, | -9, -8, -6, -5, -4, -3, -2, -1, | ||||
| @@ -139,7 +136,7 @@ AVCodec ws_snd1_decoder = { | |||||
| "ws_snd1", | "ws_snd1", | ||||
| CODEC_TYPE_AUDIO, | CODEC_TYPE_AUDIO, | ||||
| CODEC_ID_WESTWOOD_SND1, | CODEC_ID_WESTWOOD_SND1, | ||||
| sizeof(WSSNDContext), | |||||
| 0, | |||||
| ws_snd_decode_init, | ws_snd_decode_init, | ||||
| NULL, | NULL, | ||||
| NULL, | NULL, | ||||