summaryrefslogtreecommitdiff
path: root/libavformat/rdt.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-09-07 01:21:24 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-09-07 01:21:24 +0000
commitff13ba92fd6bfee75db3d1e2f593474946cbfb68 (patch)
tree51a913896024f614bb913ce6a6e6ab1ad65aa009 /libavformat/rdt.h
parent0369d2b045f41ab274fca700e23811ec5918b857 (diff)
downloadffmpeg-ff13ba92fd6bfee75db3d1e2f593474946cbfb68.tar.gz
Add dynamic payload handlers to rdt.c. These follow the same API as the ones
in rtpdec.c, so that they can be shared and used in the same way in rtsp.c. The handlers, since they are specific for RDT, are registered in rdt.c and a new registration function is thus called from allformats.c. The dynamic payload handler also implements RDT-specific SDP-line parsing for OpaqueData and StartTime, which are specific for RDT and needed for proper playback. OpaqueData contains one or a list ("MLTI") of "MDPR" chunks that can be parsed by the rmdec.c function ff_rm_read_mdpr_codecdata(). To use this function, we create a new rdt_demuxer, which has the same private data as the rm_demuxer. The resulting AVFormatContext created with _open_stream() can thus be used to call functions in the RM demuxer. See discussion in "Realmedia patch" thread on ML. Originally committed as revision 15234 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rdt.h')
-rw-r--r--libavformat/rdt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rdt.h b/libavformat/rdt.h
index f7aad6dfc9..5da9a78628 100644
--- a/libavformat/rdt.h
+++ b/libavformat/rdt.h
@@ -37,4 +37,9 @@
void ff_rdt_calc_response_and_checksum(char response[41], char chksum[9],
const char *challenge);
+/**
+ * Register RDT-related dynamic payload handlers with our cache.
+ */
+void av_register_rdt_dynamic_payload_handlers(void);
+
#endif /* AVFORMAT_RDT_H */