shithub: openh264

Download patch

ref: 4fb442a983384c29f7768b6ec0d8464ab5f61769
parent: 91574afca4d32a80a8f66794d85090fbe65c55eb
author: Martin Storsjö <martin@martin.st>
date: Thu Dec 18 08:18:30 EST 2014

Captizalize OpenH264 correctly in the version header

--- a/codec/api/svc/codec_app_def.h
+++ b/codec/api/svc/codec_app_def.h
@@ -70,7 +70,7 @@
   unsigned int uMinor;				///< The minor version number
   unsigned int uRevision;				///< The revision number
   unsigned int uReserved;				///< The reserved number, it should be 0.
-}Openh264Version;
+} OpenH264Version;
 
 /**
 * @brief Decoding status
--- a/codec/api/svc/codec_ver.h
+++ b/codec/api/svc/codec_ver.h
@@ -4,8 +4,8 @@
 
 #include "codec_app_def.h"
 
-static const Openh264Version g_stCodecVersion  = {1,3,0,0};
-static const char* g_strCodecVer  = "Openh264 version:1.3.0.0";
+static const OpenH264Version g_stCodecVersion  = {1,3,0,0};
+static const char* g_strCodecVer  = "OpenH264 version:1.3.0.0";
 
 #define OPENH264_MAJOR (1)
 #define OPENH264_MINOR (3)
--- a/codec/build/generate_codec_ver.sh
+++ b/codec/build/generate_codec_ver.sh
@@ -27,12 +27,12 @@
 echo "#include \"codec_app_def.h\"" >>codec_ver.h
 echo "" >>codec_ver.h
 
-echo "static const Openh264Version g_stCodecVersion  = {$1};"|tr '.' ',' >>codec_ver.h
-echo "static const char* g_strCodecVer  = \"Openh264 version:$1\";" >>codec_ver.h
+echo "static const OpenH264Version g_stCodecVersion  = {$1};"|tr '.' ',' >>codec_ver.h
+echo "static const char* g_strCodecVer  = \"OpenH264 version:$1\";" >>codec_ver.h
 #if [ "$2"x = ""x ]; then
-#echo "static const char* g_strCodecBuildNum = \"Openh264 revision:$revision\";" >> codec_ver.h
+#echo "static const char* g_strCodecBuildNum = \"OpenH264 revision:$revision\";" >> codec_ver.h
 #else
-#echo "static const char* g_strCodecBuildNum = \"Openh264 build:$2, OpenH264 revision:$revision\";" >> codec_ver.h
+#echo "static const char* g_strCodecBuildNum = \"OpenH264 build:$2, OpenH264 revision:$revision\";" >> codec_ver.h
 #fi
 echo "" >>codec_ver.h