From d7b9cb2f7a51351586791e65fa22e6536ee58c9f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Apr 2015 19:43:08 +0200 Subject: swresample: Allow reinitialization without ever setting channel counts Signed-off-by: Michael Niedermayer --- libswresample/swresample_internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libswresample/swresample_internal.h') 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 */ -- cgit v1.2.3