[FFmpeg-devel] [PATCH 2/4] ffmpeg: use the new swr -async parameter instead of a set of parameters.

Michael Niedermayer michaelni at gmx.at
Tue Dec 25 17:20:08 CET 2012


On Sun, Dec 23, 2012 at 12:07:12AM +0100, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  ffmpeg_filter.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
> index ebd44e3..ab2c492 100644
> --- a/ffmpeg_filter.c
> +++ b/ffmpeg_filter.c
> @@ -661,9 +661,9 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter,
>      if (audio_sync_method > 0) {
>          char args[256] = {0};
>  
> -        av_strlcatf(args, sizeof(args), "min_comp=0.001:min_hard_comp=%f", audio_drift_threshold);
> -        if (audio_sync_method > 1)
> -            av_strlcatf(args, sizeof(args), ":max_soft_comp=%f", audio_sync_method/(double)ist->st->codec->sample_rate);
> +        av_strlcatf(args, sizeof(args), "async=%d", audio_sync_method);
> +        if (audio_drift_threshold != 0.1)
> +            av_strlcatf(args, sizeof(args), ":min_hard_comp=%f", audio_drift_threshold);
>          AUTO_INSERT_FILTER_INPUT("-async", "aresample", args);
>      }

applied

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121225/4f1a4c1f/attachment.asc>


More information about the ffmpeg-devel mailing list