Merge pull request #309 from azuwis/master

yate: More video codecs mapping
This commit is contained in:
Jiri Slachta 2018-03-30 20:54:31 +02:00 committed by GitHub
commit 4a3ffd6819
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

View file

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=yate
PKG_VERSION:=6.0.0-1
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate6/

View file

@ -0,0 +1,36 @@
--- a/libs/ysdp/parser.cpp
+++ b/libs/ysdp/parser.cpp
@@ -57,7 +57,9 @@ const TokenDict SDPParser::s_payloads[]
{ "h263", 34 },
{ "h263-1998", 111 },
{ "h263-2000", 112 },
+ { "h264", 97 },
{ "vp8", 113 },
+ { "vp9", 114 },
{ "mpv", 32 },
{ "mp2t", 33 },
{ "mp4v", 110 },
@@ -92,7 +94,9 @@ const TokenDict SDPParser::s_rtpmap[] =
{ "H263/90000", 34 },
{ "H263-1998/90000", 111 },
{ "H263-2000/90000", 112 },
+ { "H264/90000", 97 },
{ "VP8/90000", 113 },
+ { "VP9/90000", 114 },
{ "MPV/90000", 32 },
{ "MP2T/90000", 33 },
{ "MP4V-ES/90000", 110 },
--- a/modules/yrtpchan.cpp
+++ b/modules/yrtpchan.cpp
@@ -63,6 +63,11 @@ static TokenDict dict_payloads[] = {
{ "mjpeg", 26 },
{ "h261", 31 },
{ "h263", 34 },
+ { "h263-1998", 111 },
+ { "h263-2000", 112 },
+ { "h264", 97 },
+ { "vp8", 113 },
+ { "vp9", 114 },
{ "mpv", 32 },
{ "mp2t", 33 },
{ "mp4v", 98 },