Mercurial > libavformat.hg
changeset 5542:b0818d132889 libavformat
remove useless type declarations
author | bcoudurier |
---|---|
date | Wed, 13 Jan 2010 22:52:22 +0000 |
parents | 79e17d3fdc9e |
children | fbedfacb36ed |
files | mpegts.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Wed Jan 13 22:50:26 2010 +0000 +++ b/mpegts.c Wed Jan 13 22:52:22 2010 +0000 @@ -40,8 +40,6 @@ #define MAX_PES_PAYLOAD 200*1024 -typedef struct PESContext PESContext; - enum MpegTSFilterType { MPEGTS_PES, MPEGTS_SECTION, @@ -87,7 +85,7 @@ 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 @@ /** 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 @@ #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 @@ 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;