Parse the ASMRuleBook SDP line to dynamically create one new AVStream for

each "rule" described in the ASMRuleBook. Each rule represents a stream
of identical content compared to other streams in the same rulebook, but
with a possibly different codec/bitrate/etc. See "[PATCH] rdt.c: ASM
rulebook parsing and AVStream creation" thread on mailinglist.

Originally committed as revision 16466 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ronald S. Bultje
2009-01-07 14:38:44 +00:00
parent b06688ffed
commit 3ca45429fe
3 changed files with 81 additions and 0 deletions

View File

@@ -101,4 +101,15 @@ int ff_rdt_parse_header(const uint8_t *buf, int len,
int ff_rdt_parse_packet(RDTDemuxContext *s, AVPacket *pkt,
const uint8_t *buf, int len);
/**
* Parse a server-related SDP line.
*
* @param s the RTSP AVFormatContext
* @param stream_index the index of the first stream in the set represented
* by the SDP m= line (in s->streams)
* @param buf the SDP line
*/
void ff_real_parse_sdp_a_line(AVFormatContext *s, int stream_index,
const char *buf);
#endif /* AVFORMAT_RDT_H */