1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

update SectionCallback and PESCallback typedefs to match functions

Originally committed as revision 9542 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2007-07-08 13:42:51 +00:00
parent 3f8cd151a0
commit b474d1f3fa

View File

@ -43,14 +43,16 @@ enum MpegTSFilterType {
MPEGTS_SECTION, MPEGTS_SECTION,
}; };
typedef void PESCallback(void *opaque, const uint8_t *buf, int len, int is_start); typedef struct MpegTSFilter MpegTSFilter;
typedef void PESCallback(MpegTSFilter *f, const uint8_t *buf, int len, int is_start);
typedef struct MpegTSPESFilter { typedef struct MpegTSPESFilter {
PESCallback *pes_cb; PESCallback *pes_cb;
void *opaque; void *opaque;
} MpegTSPESFilter; } MpegTSPESFilter;
typedef void SectionCallback(void *opaque, const uint8_t *buf, int len); typedef void SectionCallback(MpegTSFilter *f, const uint8_t *buf, int len);
typedef void SetServiceCallback(void *opaque, int ret); typedef void SetServiceCallback(void *opaque, int ret);
@ -64,7 +66,7 @@ typedef struct MpegTSSectionFilter {
void *opaque; void *opaque;
} MpegTSSectionFilter; } MpegTSSectionFilter;
typedef struct MpegTSFilter { struct MpegTSFilter {
int pid; int pid;
int last_cc; /* last cc code (-1 if first packet) */ int last_cc; /* last cc code (-1 if first packet) */
enum MpegTSFilterType type; enum MpegTSFilterType type;
@ -72,7 +74,7 @@ typedef struct MpegTSFilter {
MpegTSPESFilter pes_filter; MpegTSPESFilter pes_filter;
MpegTSSectionFilter section_filter; MpegTSSectionFilter section_filter;
} u; } u;
} MpegTSFilter; };
typedef struct MpegTSService { typedef struct MpegTSService {
int running:1; int running:1;