diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-12-18 01:28:29 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-12-18 01:28:29 +0000 |
commit | 1d217cdb3f4704cd533d7a80a9a30be473ee65b6 (patch) | |
tree | eaa5adc6b8f0d929ea89fa4dee8e5ec8fe3b53dc /libavformat/asf.h | |
parent | d7fb5a18fcf95fa36304b3428628a9cb8d0b5022 (diff) | |
download | ffmpeg-1d217cdb3f4704cd533d7a80a9a30be473ee65b6.tar.gz |
Make asf_get_packet() and asf_parse_packet() public for use in RTSP-MS and
give them a ff_ prefix. See "[PATCH] asf.c: make functions of interest for
MS-RTSP public" thread on ML.
Originally committed as revision 16205 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.h')
-rw-r--r-- | libavformat/asf.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libavformat/asf.h b/libavformat/asf.h index 4ccae1091a..afb015e13b 100644 --- a/libavformat/asf.h +++ b/libavformat/asf.h @@ -286,4 +286,25 @@ static const GUID my_guid = { #define ASF_PL_FLAG_KEY_FRAME 0x80 //1000 0000 +extern AVInputFormat asf_demuxer; + +/** + * Load a single ASF packet into the demuxer. + * @param s demux context + * @param pb context to read data from + * @returns 0 on success, <0 on error + */ +int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb); + +/** + * Parse data from individual ASF packets (which were previously loaded + * with asf_get_packet()). + * @param s demux context + * @param pb context to read data from + * @param pkt pointer to store packet data into + * @returns 0 if data was stored in pkt, <0 on error or 1 if more ASF + * packets need to be loaded (through asf_get_packet()) + */ +int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt); + #endif /* AVFORMAT_ASF_H */ |