diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-08-30 18:14:10 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-08-30 20:24:28 +0200 |
commit | 6ccd32c36760ac8b8261d68eb32b07cf5c762e52 (patch) | |
tree | 046190e7be5231a7e3b4b31ae607e354d9f62944 /libavfilter | |
parent | 2b7da70a70fef364f9a42e69b6d34133b3d089f8 (diff) | |
download | ffmpeg-6ccd32c36760ac8b8261d68eb32b07cf5c762e52.tar.gz |
avfilter/af_adelay: remove requirement that at least one delay should be provided
Such requirement is not necessary and code works without it just fine.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_adelay.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c index 187cacf28a..983f089c21 100644 --- a/libavfilter/af_adelay.c +++ b/libavfilter/af_adelay.c @@ -171,11 +171,6 @@ static int config_input(AVFilterLink *inlink) s->max_delay = FFMAX(s->max_delay, d->delay); } - if (!s->max_delay) { - av_log(ctx, AV_LOG_ERROR, "At least one delay >0 must be specified.\n"); - return AVERROR(EINVAL); - } - switch (inlink->format) { case AV_SAMPLE_FMT_U8P : s->delay_channel = delay_channel_u8p ; break; case AV_SAMPLE_FMT_S16P: s->delay_channel = delay_channel_s16p; break; |