[FFmpeg-devel] MPEG TS encoding problem on change from stereo to mono, pay for fix
Reimar Döffinger
Reimar.Doeffinger
Fri Nov 19 23:05:34 CET 2010
On Fri, Nov 19, 2010 at 03:26:57PM +0100, Stefano Sabatini wrote:
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index bff9477..22e3615 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -3076,6 +3076,14 @@ ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
> int filter_length, int log2_phase_count,
> int linear, double cutoff);
>
> +int av_audio_resample_reinit(ReSampleContext **ctx,
> + int output_channels, int input_channels,
> + int output_rate, int input_rate,
> + enum AVSampleFormat sample_fmt_out,
> + enum AVSampleFormat sample_fmt_in,
> + int filter_length, int log2_phase_count,
> + int linear, double cutoff);
I'm not convinced this should be public API, since it only
checks for changes to the first arguments but not filter_length
etc. I'd consider it too confusing/hackish to make it public...
More information about the ffmpeg-devel
mailing list