[svn-commits] file: branch 11 r371426 - /branches/11/res/res_format_attr_h264.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Aug 17 07:24:59 CDT 2012
Author: file
Date: Fri Aug 17 07:24:55 2012
New Revision: 371426
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=371426
Log:
Add some additional H.264 attributes, "max-smbps" and "max-fps", for passthrough.
(closes issue ASTERISK-20206)
Reported by: ddkprog
Patches:
res_format_attr_h264.c.diff uploaded by ddkprog (license 6008)
Modified:
branches/11/res/res_format_attr_h264.c
Modified: branches/11/res/res_format_attr_h264.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/res/res_format_attr_h264.c?view=diff&rev=371426&r1=371425&r2=371426
==============================================================================
--- branches/11/res/res_format_attr_h264.c (original)
+++ branches/11/res/res_format_attr_h264.c Fri Aug 17 07:24:55 2012
@@ -53,6 +53,8 @@
H264_ATTR_KEY_MAX_CPB,
H264_ATTR_KEY_MAX_DPB,
H264_ATTR_KEY_MAX_BR,
+ H264_ATTR_KEY_MAX_SMBPS,
+ H264_ATTR_KEY_MAX_FPS,
H264_ATTR_KEY_REDUNDANT_PIC_CAP,
H264_ATTR_KEY_PARAMETER_ADD,
H264_ATTR_KEY_PACKETIZATION_MODE,
@@ -138,6 +140,10 @@
format_attr->format_attr[H264_ATTR_KEY_MAX_DPB] = val;
} else if (sscanf(attrib, "max-br=%30u", &val) == 1) {
format_attr->format_attr[H264_ATTR_KEY_MAX_BR] = val;
+ } else if (sscanf(attrib, "max-smbps=%30u", &val) == 1) {
+ format_attr->format_attr[H264_ATTR_KEY_MAX_SMBPS] = val;
+ } else if (sscanf(attrib, "max-fps=%30u", &val) == 1) {
+ format_attr->format_attr[H264_ATTR_KEY_MAX_FPS] = val;
} else if (sscanf(attrib, "redundant-pic-cap=%30u", &val) == 1) {
format_attr->format_attr[H264_ATTR_KEY_REDUNDANT_PIC_CAP] = val;
} else if (sscanf(attrib, "parameter-add=%30u", &val) == 1) {
@@ -178,6 +184,10 @@
return "max-dpb";
case H264_ATTR_KEY_MAX_BR:
return "max-br";
+ case H264_ATTR_KEY_MAX_SMBPS:
+ return "max-smbps";
+ case H264_ATTR_KEY_MAX_FPS:
+ return "max-fps";
case H264_ATTR_KEY_REDUNDANT_PIC_CAP:
return "redundant-pic-cap";
case H264_ATTR_KEY_PARAMETER_ADD:
More information about the svn-commits
mailing list