Mercurial > libavcodec.hg
comparison dvdsubenc.c @ 4019:6d4ac21853d7 libavcodec
Remove empty structures,
Patch by Steve LHomme
Original thread:
Date: 13.10.2006 21:55
Subject: [Ffmpeg-devel] [PATCH] Remove empty structures
author | gpoirier |
---|---|
date | Sat, 14 Oct 2006 14:48:45 +0000 |
parents | c8c591fe26f8 |
children | 6166fbf375cc |
comparison
equal
deleted
inserted
replaced
4018:9c8ab288ebf6 | 4019:6d4ac21853d7 |
---|---|
20 */ | 20 */ |
21 #include "avcodec.h" | 21 #include "avcodec.h" |
22 | 22 |
23 #undef NDEBUG | 23 #undef NDEBUG |
24 #include <assert.h> | 24 #include <assert.h> |
25 | |
26 typedef struct DVDSubtitleContext { | |
27 } DVDSubtitleContext; | |
28 | 25 |
29 // ncnt is the nibble counter | 26 // ncnt is the nibble counter |
30 #define PUTNIBBLE(val)\ | 27 #define PUTNIBBLE(val)\ |
31 do {\ | 28 do {\ |
32 if (ncnt++ & 1)\ | 29 if (ncnt++ & 1)\ |
237 | 234 |
238 AVCodec dvdsub_encoder = { | 235 AVCodec dvdsub_encoder = { |
239 "dvdsub", | 236 "dvdsub", |
240 CODEC_TYPE_SUBTITLE, | 237 CODEC_TYPE_SUBTITLE, |
241 CODEC_ID_DVD_SUBTITLE, | 238 CODEC_ID_DVD_SUBTITLE, |
242 sizeof(DVDSubtitleContext), | 239 0, |
243 dvdsub_init_encoder, | 240 dvdsub_init_encoder, |
244 dvdsub_encode, | 241 dvdsub_encode, |
245 dvdsub_close_encoder, | 242 dvdsub_close_encoder, |
246 }; | 243 }; |
247 | 244 |