[FFmpeg-devel] [PATCH] avfilter: add audio pulsator filter

Paul B Mahol onemda at gmail.com
Sun Nov 29 13:45:55 CET 2015


On 11/29/15, Ganesh Ajjanagadde <gajjanag at mit.edu> wrote:
> On Sat, Nov 28, 2015 at 6:21 PM, Ganesh Ajjanagadde <gajjanag at mit.edu>
> wrote:
>> On Sat, Nov 28, 2015 at 5:26 PM, Paul B Mahol <onemda at gmail.com> wrote:
>>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> [...]
>>
>>> +    case SQUARE:
>>> +        val = (phs < 0.5) ? -1 : +1;
>>
>> Something I missed: consider using e.g FFSIGN(phs - 0.5) or FFSIGN(0.5
>> - phase), can't recall.
>
> This I still suggest for readability.

Both produce differend md5 output.

>
>> This is actually important because if one
>> feeds in 0.5 exactly (which is exactly representable), val becomes
>> unitialized and hence garbage.
>
> Sorry, this was complete garbage and should be ignored. What you
> choose to do at the discontinuity is practically irrelevant. The
> "purest" thing to do is take the midpoint of the jump, i.e 0 per
> Fourier theory, but I don't think it is good due to an extra bench for
> essentially zero gain.
>
>>
>> [...]
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list