diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-04-26 17:57:20 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-04-26 22:25:10 +0200 |
commit | 356a33b20aec0e6b3ca8c85da60e4c95b7559b35 (patch) | |
tree | e06dea7bc8f7f781634819966b0388dedbebb0d5 /libavfilter/vf_atadenoise.c | |
parent | 2e341eb15bf872039388ede9980a7aff051b0e43 (diff) | |
download | ffmpeg-356a33b20aec0e6b3ca8c85da60e4c95b7559b35.tar.gz |
avfilter/vf_atadenoise: do not abort if user specified invalid size
Update documentation with new size default.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_atadenoise.c')
-rw-r--r-- | libavfilter/vf_atadenoise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_atadenoise.c b/libavfilter/vf_atadenoise.c index 03b772c674..fcde9460ff 100644 --- a/libavfilter/vf_atadenoise.c +++ b/libavfilter/vf_atadenoise.c @@ -112,8 +112,8 @@ static av_cold int init(AVFilterContext *ctx) ATADenoiseContext *s = ctx->priv; if (!(s->size & 1)) { - av_log(ctx, AV_LOG_ERROR, "size %d is invalid. Must be an odd value.\n", s->size); - return AVERROR(EINVAL); + av_log(ctx, AV_LOG_WARNING, "size %d is invalid. Must be an odd value, setting it to %d.\n", s->size, s->size|1); + s->size |= 1; } s->mid = s->size / 2 + 1; |