mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/unsharp: merge definition and declaration in init_filter_param()
This commit is contained in:
parent
d2cadea3f0
commit
64e592eef2
@ -203,7 +203,7 @@ static int query_formats(AVFilterContext *ctx)
|
||||
static int init_filter_param(AVFilterContext *ctx, FilterParam *fp, const char *effect_type, int width)
|
||||
{
|
||||
int z;
|
||||
const char *effect;
|
||||
const char *effect = fp->amount == 0 ? "none" : fp->amount < 0 ? "blur" : "sharpen";
|
||||
|
||||
if (!(fp->msize_x & fp->msize_y & 1)) {
|
||||
av_log(ctx, AV_LOG_ERROR,
|
||||
@ -212,8 +212,6 @@ static int init_filter_param(AVFilterContext *ctx, FilterParam *fp, const char *
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
effect = fp->amount == 0 ? "none" : fp->amount < 0 ? "blur" : "sharpen";
|
||||
|
||||
av_log(ctx, AV_LOG_VERBOSE, "effect:%s type:%s msize_x:%d msize_y:%d amount:%0.2f\n",
|
||||
effect, effect_type, fp->msize_x, fp->msize_y, fp->amount / 65535.0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user