forked from FFmpeg/FFmpeg
mpegts-documentation-only.patch -- adds documentation patch by Daniel Kristjansson / danielk mrl.nyu edu
yes another 1 year old patch, this one though has one failed hunk Originally committed as revision 7676 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bb2864fb21
commit
e995cfca28
1 changed files with 28 additions and 13 deletions
|
@ -75,47 +75,62 @@ typedef struct MpegTSFilter {
|
||||||
|
|
||||||
typedef struct MpegTSService {
|
typedef struct MpegTSService {
|
||||||
int running:1;
|
int running:1;
|
||||||
int sid;
|
int sid; /**< MPEG Program Number of stream */
|
||||||
char *provider_name;
|
char *provider_name; /**< DVB Network name, "" if not DVB stream */
|
||||||
char *name;
|
char *name; /**< DVB Service name, "MPEG Program [sid]" if not DVB stream*/
|
||||||
} MpegTSService;
|
} MpegTSService;
|
||||||
|
|
||||||
struct MpegTSContext {
|
struct MpegTSContext {
|
||||||
/* user data */
|
/* user data */
|
||||||
AVFormatContext *stream;
|
AVFormatContext *stream;
|
||||||
int raw_packet_size; /* raw packet size, including FEC if present */
|
/** raw packet size, including FEC if present */
|
||||||
int auto_guess; /* if true, all pids are analized to find streams */
|
int raw_packet_size;
|
||||||
|
/** if true, all pids are analyzed to find streams */
|
||||||
|
int auto_guess;
|
||||||
int set_service_ret;
|
int set_service_ret;
|
||||||
|
|
||||||
int mpeg2ts_raw; /* force raw MPEG2 transport stream output, if possible */
|
/** force raw MPEG2 transport stream output, if possible */
|
||||||
int mpeg2ts_compute_pcr; /* compute exact PCR for each transport stream packet */
|
int mpeg2ts_raw;
|
||||||
|
/** compute exact PCR for each transport stream packet */
|
||||||
|
int mpeg2ts_compute_pcr;
|
||||||
|
|
||||||
/* used to estimate the exact PCR */
|
int64_t cur_pcr; /**< used to estimate the exact PCR */
|
||||||
int64_t cur_pcr;
|
int pcr_incr; /**< used to estimate the exact PCR */
|
||||||
int pcr_incr;
|
int pcr_pid; /**< used to estimate the exact PCR */
|
||||||
int pcr_pid;
|
|
||||||
|
|
||||||
/* data needed to handle file based ts */
|
/* data needed to handle file based ts */
|
||||||
int stop_parse; /* stop parsing loop */
|
/** stop parsing loop */
|
||||||
AVPacket *pkt; /* packet containing av data */
|
int stop_parse;
|
||||||
|
/** packet containing Audio/Video data */
|
||||||
|
AVPacket *pkt;
|
||||||
|
|
||||||
/******************************************/
|
/******************************************/
|
||||||
/* private mpegts data */
|
/* private mpegts data */
|
||||||
/* scan context */
|
/* scan context */
|
||||||
MpegTSFilter *sdt_filter;
|
MpegTSFilter *sdt_filter;
|
||||||
|
/** number of PMTs in the last PAT seen */
|
||||||
int nb_services;
|
int nb_services;
|
||||||
|
/** list of PMTs in the last PAT seen */
|
||||||
MpegTSService **services;
|
MpegTSService **services;
|
||||||
|
|
||||||
/* set service context (XXX: allocated it ?) */
|
/* set service context (XXX: allocated it ?) */
|
||||||
SetServiceCallback *set_service_cb;
|
SetServiceCallback *set_service_cb;
|
||||||
void *set_service_opaque;
|
void *set_service_opaque;
|
||||||
|
/** filter for the PAT */
|
||||||
MpegTSFilter *pat_filter;
|
MpegTSFilter *pat_filter;
|
||||||
|
/** filter for the PMT for the MPEG program number specified by req_sid */
|
||||||
MpegTSFilter *pmt_filter;
|
MpegTSFilter *pmt_filter;
|
||||||
|
/** MPEG program number of stream we want to decode */
|
||||||
int req_sid;
|
int req_sid;
|
||||||
|
|
||||||
|
/** filters for various streams specified by PMT + for the PAT and PMT */
|
||||||
MpegTSFilter *pids[NB_PID_MAX];
|
MpegTSFilter *pids[NB_PID_MAX];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Assembles PES packets out of TS packets, and then calls the "section_cb"
|
||||||
|
* function when they are complete.
|
||||||
|
*/
|
||||||
static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1,
|
static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1,
|
||||||
const uint8_t *buf, int buf_size, int is_start)
|
const uint8_t *buf, int buf_size, int is_start)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue