diff options
author | Peter Ross <pross@xvid.org> | 2010-12-29 12:45:31 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2010-12-29 12:45:31 +0000 |
commit | cc9038e95c6dc68e3e455327134c5f8530678e43 (patch) | |
tree | 0a0bd7020a7a5f1025cdf62eaa7d4d3759918a85 /libavformat/mpegts.h | |
parent | 0af1671e5318837e461cd3cb662832c216486fbb (diff) | |
download | ffmpeg-cc9038e95c6dc68e3e455327134c5f8530678e43.tar.gz |
add ff_parse_mpeg2_descriptor; make MPEG2 descriptor parsing routines available to other modules.
Originally committed as revision 26125 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.h')
-rw-r--r-- | libavformat/mpegts.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h index 6be9b73f06..25f21079c6 100644 --- a/libavformat/mpegts.h +++ b/libavformat/mpegts.h @@ -63,4 +63,22 @@ int ff_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len); void ff_mpegts_parse_close(MpegTSContext *ts); +/** + * Parse an MPEG-2 descriptor + * @param[in] fc Format context (used for logging only) + * @param st Stream + * @param stream_type STREAM_TYPE_xxx + * @param pp Descriptor buffer pointer + * @param desc_list_end End of buffer + * @param mp4_dec_config_descr_len Length of 'mp4_dec_config_descr', or zero if not present + * @param mp4_es_id + * @param pid + * @param mp4_dec_config_descr + * @return <0 to stop processing + */ +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); + #endif /* AVFORMAT_MPEGTS_H */ |