[Ffmpeg-cvslog] r6690 - in trunk/libavcodec: dvdsub.c dvdsubenc.c ws-snd1.c
gpoirier
subversion
Sat Oct 14 16:48:45 CEST 2006
Author: gpoirier
Date: Sat Oct 14 16:48:45 2006
New Revision: 6690
Modified:
trunk/libavcodec/dvdsub.c
trunk/libavcodec/dvdsubenc.c
trunk/libavcodec/ws-snd1.c
Log:
Remove empty structures,
Patch by Steve LHomme
Original thread:
Date: 13.10.2006 21:55
Subject: [Ffmpeg-devel] [PATCH] Remove empty structures
Modified: trunk/libavcodec/dvdsub.c
==============================================================================
--- trunk/libavcodec/dvdsub.c (original)
+++ trunk/libavcodec/dvdsub.c Sat Oct 14 16:48:45 2006
@@ -22,9 +22,6 @@
//#define DEBUG
-typedef struct DVDSubContext {
-} DVDSubContext;
-
static int dvdsub_init_decoder(AVCodecContext *avctx)
{
return 0;
@@ -412,7 +409,7 @@
"dvdsub",
CODEC_TYPE_SUBTITLE,
CODEC_ID_DVD_SUBTITLE,
- sizeof(DVDSubContext),
+ 0,
dvdsub_init_decoder,
NULL,
dvdsub_close_decoder,
Modified: trunk/libavcodec/dvdsubenc.c
==============================================================================
--- trunk/libavcodec/dvdsubenc.c (original)
+++ trunk/libavcodec/dvdsubenc.c Sat Oct 14 16:48:45 2006
@@ -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 @@
"dvdsub",
CODEC_TYPE_SUBTITLE,
CODEC_ID_DVD_SUBTITLE,
- sizeof(DVDSubtitleContext),
+ 0,
dvdsub_init_encoder,
dvdsub_encode,
dvdsub_close_encoder,
Modified: trunk/libavcodec/ws-snd1.c
==============================================================================
--- trunk/libavcodec/ws-snd1.c (original)
+++ trunk/libavcodec/ws-snd1.c Sat Oct 14 16:48:45 2006
@@ -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 @@
"ws_snd1",
CODEC_TYPE_AUDIO,
CODEC_ID_WESTWOOD_SND1,
- sizeof(WSSNDContext),
+ 0,
ws_snd_decode_init,
NULL,
NULL,
More information about the ffmpeg-cvslog
mailing list