summaryrefslogtreecommitdiff
path: root/libswresample/swresample_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-12 19:43:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-12 22:21:34 +0200
commitd7b9cb2f7a51351586791e65fa22e6536ee58c9f (patch)
tree1318ef39375afcce3319123623cf3c07d8d327f0 /libswresample/swresample_internal.h
parent14edc9f3a3924237e4fd57bac301a9cbd263ab79 (diff)
swresample: Allow reinitialization without ever setting channel counts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample_internal.h')
-rw-r--r--libswresample/swresample_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h
index 77ec9bb1bb..c9e8476806 100644
--- a/libswresample/swresample_internal.h
+++ b/libswresample/swresample_internal.h
@@ -112,6 +112,10 @@ struct SwrContext {
int used_ch_count; ///< number of used input channels (mapped channel count if channel_map, otherwise in.ch_count)
int engine;
+ int user_in_ch_count; ///< User set input channel count
+ int user_out_ch_count; ///< User set output channel count
+ int user_used_ch_count; ///< User set used channel count
+
struct DitherContext dither;
int filter_size; /**< length of each FIR filter in the resampling filterbank relative to the cutoff frequency */