diff options
author | Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> | 2015-02-08 22:22:41 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 16:19:44 +0200 |
commit | 04a1be8e28e81f3967eace7705343c450616cc95 (patch) | |
tree | 7fde9d74c79038bad70bcc0c8753922868aa0438 /libavformat | |
parent | 26524e358147aade6e9dd18fff42d61b966bbc70 (diff) | |
download | ffmpeg-04a1be8e28e81f3967eace7705343c450616cc95.tar.gz |
libavformat: add T.140 RTP depacketization (RFC 4103)
Map this to AV_CODEC_ID_TEXT.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec.c | 7 | ||||
-rw-r--r-- | libavformat/version.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 8858b133e8..f040ea618e 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -50,6 +50,12 @@ static RTPDynamicProtocolHandler opus_dynamic_handler = { .codec_id = AV_CODEC_ID_OPUS, }; +static RTPDynamicProtocolHandler t140_dynamic_handler = { /* RFC 4103 */ + .enc_name = "t140", + .codec_type = AVMEDIA_TYPE_DATA, + .codec_id = AV_CODEC_ID_TEXT, +}; + static RTPDynamicProtocolHandler *rtp_first_dynamic_payload_handler = NULL; void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler) @@ -98,6 +104,7 @@ void ff_register_rtp_dynamic_payload_handlers(void) ff_register_dynamic_payload_handler(&opus_dynamic_handler); ff_register_dynamic_payload_handler(&realmedia_mp3_dynamic_handler); ff_register_dynamic_payload_handler(&speex_dynamic_handler); + ff_register_dynamic_payload_handler(&t140_dynamic_handler); } RTPDynamicProtocolHandler *ff_rtp_handler_find_by_name(const char *name, diff --git a/libavformat/version.h b/libavformat/version.h index d99f75d74d..ce7528edb9 100644 --- a/libavformat/version.h +++ b/libavformat/version.h @@ -30,7 +30,7 @@ #include "libavutil/version.h" #define LIBAVFORMAT_VERSION_MAJOR 56 -#define LIBAVFORMAT_VERSION_MINOR 15 +#define LIBAVFORMAT_VERSION_MINOR 16 #define LIBAVFORMAT_VERSION_MICRO 0 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |