lavfi/libvmaf: Rename local variable "main" as "master".
Fixes the following warning: libavfilter/vf_libvmaf.c:179:14: warning: 'main' is usually a function Missed in 5d3e9357
This commit is contained in:
parent
5a366f9770
commit
d13b8f68d7
@ -176,14 +176,14 @@ static int do_vmaf(FFFrameSync *fs)
|
|||||||
{
|
{
|
||||||
AVFilterContext *ctx = fs->parent;
|
AVFilterContext *ctx = fs->parent;
|
||||||
LIBVMAFContext *s = ctx->priv;
|
LIBVMAFContext *s = ctx->priv;
|
||||||
AVFrame *main, *ref;
|
AVFrame *master, *ref;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = ff_framesync_dualinput_get(fs, &main, &ref);
|
ret = ff_framesync_dualinput_get(fs, &master, &ref);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
if (!ref)
|
if (!ref)
|
||||||
return ff_filter_frame(ctx->outputs[0], main);
|
return ff_filter_frame(ctx->outputs[0], master);
|
||||||
|
|
||||||
pthread_mutex_lock(&s->lock);
|
pthread_mutex_lock(&s->lock);
|
||||||
|
|
||||||
@ -192,14 +192,14 @@ static int do_vmaf(FFFrameSync *fs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
av_frame_ref(s->gref, ref);
|
av_frame_ref(s->gref, ref);
|
||||||
av_frame_ref(s->gmain, main);
|
av_frame_ref(s->gmain, master);
|
||||||
|
|
||||||
s->frame_set = 1;
|
s->frame_set = 1;
|
||||||
|
|
||||||
pthread_cond_signal(&s->cond);
|
pthread_cond_signal(&s->cond);
|
||||||
pthread_mutex_unlock(&s->lock);
|
pthread_mutex_unlock(&s->lock);
|
||||||
|
|
||||||
return ff_filter_frame(ctx->outputs[0], main);
|
return ff_filter_frame(ctx->outputs[0], master);
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int init(AVFilterContext *ctx)
|
static av_cold int init(AVFilterContext *ctx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user