summaryrefslogtreecommitdiff
path: root/libavfilter/af_atempo.c
diff options
context:
space:
mode:
authorPavel Koshevoy <pkoshevoy@gmail.com>2018-06-14 19:19:17 -0600
committerPavel Koshevoy <pkoshevoy@gmail.com>2018-06-14 19:19:17 -0600
commit29cddc99cd8302e462bbae572e885e88f63d6dc3 (patch)
tree3cc416352f242788da74c735c621a7758e84ab07 /libavfilter/af_atempo.c
parent78298bce70edda705ebfc61ee1d0b8a3b3dad772 (diff)
lavfi/atempo: raise max tempo limit (v2)
Diffstat (limited to 'libavfilter/af_atempo.c')
-rw-r--r--libavfilter/af_atempo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c
index 8b214bccd7..52f15f2769 100644
--- a/libavfilter/af_atempo.c
+++ b/libavfilter/af_atempo.c
@@ -153,7 +153,7 @@ typedef struct ATempoContext {
static const AVOption atempo_options[] = {
{ "tempo", "set tempo scale factor",
- OFFSET(tempo), AV_OPT_TYPE_DOUBLE, { .dbl = 1.0 }, 0.5, 2.0,
+ OFFSET(tempo), AV_OPT_TYPE_DOUBLE, { .dbl = 1.0 }, 0.5, 100.0,
AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM },
{ NULL }
};
@@ -439,8 +439,8 @@ static int yae_load_data(ATempoContext *atempo,
return 0;
}
- // samples are not expected to be skipped:
- av_assert0(read_size <= atempo->ring);
+ // samples are not expected to be skipped, unless tempo is greater than 2:
+ av_assert0(read_size <= atempo->ring || atempo->tempo > 2.0);
while (atempo->position[0] < stop_here && src < src_end) {
int src_samples = (src_end - src) / atempo->stride;