[FFmpeg-devel] [PATCH]Raise max channels to 64

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jul 10 18:24:42 CEST 2015


Hi!

A user claims that attached patch helps him 
with a 64-channel software input device on 
avfoundation that does not work with current 
git head.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index cea5355..f3dafc0 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -65,7 +65,7 @@
 #define FF_DEFAULT_QUANT_BIAS 999999
 #endif
 
-#define FF_SANE_NB_CHANNELS 63U
+#define FF_SANE_NB_CHANNELS 64U
 
 #define FF_SIGNBIT(x) ((x) >> CHAR_BIT * sizeof(x) - 1)
 
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 4ba77a7..9117cc0 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -37,7 +37,7 @@
 #include "formats.h"
 #include "internal.h"
 
-#define MAX_CHANNELS 63
+#define MAX_CHANNELS 64
 
 typedef struct PanContext {
     const AVClass *class;
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h
index e36faf1..ce5eef4 100644
--- a/libswresample/swresample_internal.h
+++ b/libswresample/swresample_internal.h
@@ -25,7 +25,7 @@
 #include "libavutil/channel_layout.h"
 #include "config.h"
 
-#define SWR_CH_MAX 32
+#define SWR_CH_MAX 64
 
 #define SQRT3_2      1.22474487139158904909  /* sqrt(3/2) */
 


More information about the ffmpeg-devel mailing list