diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-10-04 23:43:59 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-10-28 14:54:13 -0700 |
commit | c3bc6096f234151a09f79c6d1c0360bc08dde9d8 (patch) | |
tree | 2eee89c12f670ccaf2c0b62578a4964fa157dfac /libavformat/mpegts.h | |
parent | 476d04a56ac499b9a5a081646d9737d956f24130 (diff) | |
download | ffmpeg-c3bc6096f234151a09f79c6d1c0360bc08dde9d8.tar.gz |
mpegts: Add support for multiple mp4 descriptors
Diffstat (limited to 'libavformat/mpegts.h')
-rw-r--r-- | libavformat/mpegts.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h index 73ef2ed10a..15eee60782 100644 --- a/libavformat/mpegts.h +++ b/libavformat/mpegts.h @@ -64,6 +64,12 @@ int ff_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len); void ff_mpegts_parse_close(MpegTSContext *ts); +typedef struct { + int es_id; + int dec_config_descr_len; + uint8_t *dec_config_descr; +} Mp4Descr; + /** * Parse an MPEG-2 descriptor * @param[in] fc Format context (used for logging only) @@ -79,7 +85,6 @@ void ff_mpegts_parse_close(MpegTSContext *ts); */ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type, const uint8_t **pp, const uint8_t *desc_list_end, - int mp4_dec_config_descr_len, int mp4_es_id, int pid, - uint8_t *mp4_dec_config_descr); + Mp4Descr *mp4_descr, int mp4_descr_count, int pid); #endif /* AVFORMAT_MPEGTS_H */ |