[FFmpeg-devel] [PATCH 1/5] avfilter/af_afade: fix crossfade duration maximum value

Paul B Mahol onemda at gmail.com
Mon Oct 1 11:07:52 EEST 2018


On 10/1/18, Marton Balint <cus at passwd.hu> wrote:
>
>
> On Mon, 1 Oct 2018, Paul B Mahol wrote:
>
>> On 9/30/18, Marton Balint <cus at passwd.hu> wrote:
>>> Signed-off-by: Marton Balint <cus at passwd.hu>
>>> ---
>>>  libavfilter/af_afade.c | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>
>> Why?
>>
>> Value is too big.
>
> AV_OPT_TYPE_DURATION is microsecond precision, therefore 60 is 60 usecs.
> Probably you meant 60 seconds as limit. That is what the patch fixes.

I do not think so. Duration is interpreted as seconds, look how
variable is used in code.


More information about the ffmpeg-devel mailing list