summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-01-13 22:52:22 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-01-13 22:52:22 +0000
commit10061cd6489eb42ad642e6902d8b3fffdcba1f17 (patch)
tree73d1f00d93ee631ec9e543d26593d19ccc052b45 /libavformat/mpegts.c
parentdcc2220ab5c15a6b79d4d8d074b9347715dca83d (diff)
remove useless type declarations
Originally committed as revision 21206 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 44112f0fc5..66cf916448 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -40,8 +40,6 @@
#define MAX_PES_PAYLOAD 200*1024
-typedef struct PESContext PESContext;
-
enum MpegTSFilterType {
MPEGTS_PES,
MPEGTS_SECTION,
@@ -87,7 +85,7 @@ struct Program {
unsigned int pids[MAX_PIDS_PER_PROGRAM];
};
-struct MpegTSContext {
+typedef struct MpegTSContext {
/* user data */
AVFormatContext *stream;
/** raw packet size, including FEC if present */
@@ -122,7 +120,7 @@ struct MpegTSContext {
/** filters for various streams specified by PMT + for the PAT and PMT */
MpegTSFilter *pids[NB_PID_MAX];
-};
+} MpegTSContext;
/* TS stream handling */
@@ -139,7 +137,7 @@ enum MpegTSState {
#define PES_HEADER_SIZE 9
#define MAX_PES_HEADER_SIZE (9 + 255)
-struct PESContext {
+typedef struct PESContext {
int pid;
int pcr_pid; /**< if -1 then all packets containing PCR are considered */
int stream_type;
@@ -157,7 +155,7 @@ struct PESContext {
int64_t ts_packet_pos; /**< position of first TS packet of this PES packet */
uint8_t header[MAX_PES_HEADER_SIZE];
uint8_t *buffer;
-};
+} PESContext;
extern AVInputFormat mpegts_demuxer;