Add finer-grained configure options for ogg/vorbis/speex.
[paraslash.git] / wma_common.c
index dab96257d09876916240817811508c31c45b29d6..781db5f4a36678f14db97a165b02e8f41df3e8b8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2009-2011 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -38,8 +38,8 @@ const char *search_pattern(const char *pattern, int pattern_len,
        for (p = buf; p + pattern_len < end; p++) {
                if (memcmp(p, pattern, pattern_len))
                        continue;
-               PARA_DEBUG_LOG("found %d byte pattern@%zd\n",
-                       pattern_len, p - buf);
+               PARA_DEBUG_LOG("found %d byte pattern@%d\n",
+                       pattern_len, (int)(p - buf));
                return p;
        }
        PARA_NOTICE_LOG("%d byte pattern not found\n", pattern_len);
@@ -56,7 +56,7 @@ static int find_audio_stream_info(const char *buf, int len)
 
        if (!p)
                return -E_WMA_NO_GUID;
-       PARA_DEBUG_LOG("found audio stream guid@%0zx\n", p - buf);
+       PARA_DEBUG_LOG("found audio stream guid@%0x\n", (int)(p - buf));
        return p - buf + 16;
 }