diff options
-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) { |