diff options
author | Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> | 2015-02-08 22:22:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-13 00:11:59 +0100 |
commit | af940e6cb1212d4338e55c03498ef5ae40e6e749 (patch) | |
tree | 322f346a01b69a1db5b51517ab9b1c9d900df512 /libavformat | |
parent | afb0e5a810ae110a69b618e5fbed78a7c1b899f3 (diff) | |
download | ffmpeg-af940e6cb1212d4338e55c03498ef5ae40e6e749.tar.gz |
avformat/rtpdec: add T.140 RTP depacketization (RFC 4103)
Reviewed-by: Thomas Volkert <silvo@gmx.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 28a926f8f9..4ff209c7d6 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -56,6 +56,12 @@ static RTPDynamicProtocolHandler opus_dynamic_handler = { .codec_id = AV_CODEC_ID_OPUS, }; +static RTPDynamicProtocolHandler ff_t140_dynamic_handler = { + .enc_name = "t140", + .codec_type = AVMEDIA_TYPE_SUBTITLE, + .codec_id = AV_CODEC_ID_SUBRIP, +}; + static RTPDynamicProtocolHandler *rtp_first_dynamic_payload_handler = NULL; void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler) @@ -95,6 +101,7 @@ void ff_register_rtp_dynamic_payload_handlers(void) ff_register_dynamic_payload_handler(&ff_quicktime_rtp_aud_handler); ff_register_dynamic_payload_handler(&ff_quicktime_rtp_vid_handler); ff_register_dynamic_payload_handler(&ff_svq3_dynamic_handler); + ff_register_dynamic_payload_handler(&ff_t140_dynamic_handler); ff_register_dynamic_payload_handler(&ff_theora_dynamic_handler); ff_register_dynamic_payload_handler(&ff_vorbis_dynamic_handler); ff_register_dynamic_payload_handler(&ff_vp8_dynamic_handler); |