Skip to content

Instantly share code, notes, and snippets.

@maxton
Created February 21, 2018 07:26
Show Gist options
  • Save maxton/f7a205ecd1975769c813f36e5cd119b8 to your computer and use it in GitHub Desktop.
Save maxton/f7a205ecd1975769c813f36e5cd119b8 to your computer and use it in GitHub Desktop.
ffmpeg patch to allow decoding Power Gig XMA
From: Maxton <>
Date: Wed, 21 Feb 2018 02:21:42 -0500
Subject: [PATCH] Allow decoding up to 16 channels of xma
---
libavcodec/wmaprodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 77a49c9..0460fce 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -107,7 +107,7 @@
#define MAX_BANDS 29 ///< max number of scale factor bands
#define MAX_FRAMESIZE 32768 ///< maximum compressed frame size
#define XMA_MAX_STREAMS 8
-#define XMA_MAX_CHANNELS 8
+#define XMA_MAX_CHANNELS 16
#define XMA_MAX_CHANNELS_STREAM 2
#define WMAPRO_BLOCK_MIN_BITS 6 ///< log2 of min block size
--
2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment