[FFmpeg-devel] [PATCH] libavfilter: add atempo filter (revised patch v2)

Pavel Koshevoy pkoshevoy at gmail.com
Fri Jun 8 16:35:20 CEST 2012


On 06/07/2012 10:22 PM, Pavel Koshevoy wrote:

[...]
> +    if (atempo->dst_buffer) {
> +        avfilter_unref_bufferp(&atempo->dst_buffer);
> +        atempo->dst        = NULL;
> +        atempo->dst_end    = NULL;
> +    }
> +

I should probably get rid of the if (atempo->dst_buffer) {

[...]

> +            for (; src<  src_end; blend++) {                            \
> +                tmp = *(const TScalar *)src;                            \
> +                src += sizeof(TScalar);                                 \
> +                                                                        \
> +                max = (FFTSample)tmp;                                   \
> +                s = FFMIN((FFTSample)scalar_max,                        \
> +                          (FFTSample)fabsf(max));                       \
> +                                                                        \
> +                for (i = 1; i<  atempo->channels; i++) {                \
> +                    tmp = *src++;                                       \

Oops, that tmp = *src++ should be changed to tmp = *(const TScalar *)src.

Please ignore this patch, I'll send another one in a minute.

Thank you,
     Pavel.



More information about the ffmpeg-devel mailing list