From 621b0df62787e49dafbc78c1d90e19631dd77ba5 Mon Sep 17 00:00:00 2001 From: Luo Jinghua Date: Sun, 20 Sep 2009 20:44:38 +0800 Subject: ppssrc: handle capital hex string too --- src/gstppssrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3