• Marton Balint's avatar
    avfilter/af_apad: do not add infinite silence for zero pad_dur or whole_dur · 0a9edac4
    Marton Balint authored
    Unfortunately pad_len and pad_dur behaviour was different if 0 was specified,
    pad_dur handled 0 duration as infinity, for pad_len, infinity was -1.
    
    Let's make the behaviour consistent by handling 0 duration for pad_dur and
    whole_dur as indeed 0 duration. This somewhat changes the behaviour of the
    filter if 0 was explicitly specified, but deprecating the old option and adding
    a new for the corrected behaviour seemed a bit overkill. So let's document the
    change instead.
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    0a9edac4
af_apad.c 5.74 KB