aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve L'Homme <slhomme@divxcorp.com>2006-10-14 14:48:45 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-10-14 14:48:45 +0000
commit8aaed74c4b57de5247185efb2af95ddbd69f3620 (patch)
tree16078d261ca7e99c6f1a1a3936b95a556b2f846a
parentab9ce191707b23694b98d730fd28e8ddb940ec2b (diff)
downloadffmpeg-8aaed74c4b57de5247185efb2af95ddbd69f3620.tar.gz
Remove empty structures,
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/trunk
-rw-r--r--libavcodec/dvdsub.c5
-rw-r--r--libavcodec/dvdsubenc.c5
-rw-r--r--libavcodec/ws-snd1.c5
3 files changed, 3 insertions, 12 deletions
diff --git a/libavcodec/dvdsub.c b/libavcodec/dvdsub.c
index 2ed015a99a..9a0dd7756d 100644
--- a/libavcodec/dvdsub.c
+++ b/libavcodec/dvdsub.c
@@ -22,9 +22,6 @@
//#define DEBUG
-typedef struct DVDSubContext {
-} DVDSubContext;
-
static int dvdsub_init_decoder(AVCodecContext *avctx)
{
return 0;
@@ -412,7 +409,7 @@ AVCodec dvdsub_decoder = {
"dvdsub",
CODEC_TYPE_SUBTITLE,
CODEC_ID_DVD_SUBTITLE,
- sizeof(DVDSubContext),
+ 0,
dvdsub_init_decoder,
NULL,
dvdsub_close_decoder,
diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index b7224a4f6e..fac29acc2c 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -23,9 +23,6 @@
#undef NDEBUG
#include <assert.h>
-typedef struct DVDSubtitleContext {
-} DVDSubtitleContext;
-
// ncnt is the nibble counter
#define PUTNIBBLE(val)\
do {\
@@ -239,7 +236,7 @@ AVCodec dvdsub_encoder = {
"dvdsub",
CODEC_TYPE_SUBTITLE,
CODEC_ID_DVD_SUBTITLE,
- sizeof(DVDSubtitleContext),
+ 0,
dvdsub_init_encoder,
dvdsub_encode,
dvdsub_close_encoder,
diff --git a/libavcodec/ws-snd1.c b/libavcodec/ws-snd1.c
index 2d1ed92b92..eb4fe81d3f 100644
--- a/libavcodec/ws-snd1.c
+++ b/libavcodec/ws-snd1.c
@@ -29,9 +29,6 @@
* http://www.multimedia.cx
*/
-typedef struct {
-} WSSNDContext;
-
static const char ws_adpcm_2bit[] = { -2, -1, 0, 1};
static const char ws_adpcm_4bit[] = {
-9, -8, -6, -5, -4, -3, -2, -1,
@@ -139,7 +136,7 @@ AVCodec ws_snd1_decoder = {
"ws_snd1",
CODEC_TYPE_AUDIO,
CODEC_ID_WESTWOOD_SND1,
- sizeof(WSSNDContext),
+ 0,
ws_snd_decode_init,
NULL,
NULL,