summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2009-09-20 20:44:38 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2009-09-20 20:44:38 +0800
commit621b0df62787e49dafbc78c1d90e19631dd77ba5 (patch)
treea9cafe2bb33a15afbad0034a7e97e50013c0ab2f
parent92be48f42eb013cf041f28486835ab7bb8a3e1eb (diff)
ppssrc: handle capital hex string too
-rw-r--r--src/gstppssrc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gstppssrc.c b/src/gstppssrc.c
index d099915..c85c8f6 100644
--- a/src/gstppssrc.c
+++ b/src/gstppssrc.c
@@ -981,7 +981,9 @@ gst_pps_src_hexlify (gchar *dst, const gchar *src, size_t len)
return 2 * len;
}
-#define UNHEXLIFY(ch) (ch >= '0' && ch <= '9' ? ch - '0' : ch - 'a' + 10)
+#define UNHEXLIFY(ch) (ch >= '0' && ch <= '9' ? ch - '0' : \
+ (ch >= 'A' && ch <= 'F' ? ch - 'A' + 10 : \
+ ch - 'a' + 10))
static int
gst_pps_src_unhexlify (gchar *dst, const gchar *src, size_t len)
{