lavfi/aevalsrc: try to honor specified duration
authorMatthieu Bouron <matthieu.bouron@gmail.com>
Sat, 12 Jan 2013 13:32:03 +0000 (14:32 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Sat, 12 Jan 2013 16:26:35 +0000 (17:26 +0100)
commitf9eed5d7e6200a076f2a38c20692d3a002419781
tree7b4e6c7c0ef13c5d5649b0488f98baa7fc681a75
parent868ac91c8dbe1df8efa17a141fad0b02a144a7d6
lavfi/aevalsrc: try to honor specified duration

If nb_samples divide sample_rate and if nb_samples allow it, aevalsrc
should generate the exact amount of samples according to duration.

Example:
aevalsrc=0::n=480:s=48000:d=5.21 should generate 250080 samples.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavfilter/asrc_aevalsrc.c