diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-20 20:44:38 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-20 20:44:38 +0800 |
commit | 621b0df62787e49dafbc78c1d90e19631dd77ba5 (patch) | |
tree | a9cafe2bb33a15afbad0034a7e97e50013c0ab2f | |
parent | 92be48f42eb013cf041f28486835ab7bb8a3e1eb (diff) |
ppssrc: handle capital hex string too
-rw-r--r-- | src/gstppssrc.c | 4 |
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) { |