Opened 4 years ago

Closed 4 years ago

#6878 closed defect (fixed)

Error compiling libvmaf filter in MinGW

Reported by: Gyan Owned by:
Priority: important Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Compiling libvmaf filter fails on Windows using GCC 6.3.0 on MinGW64

CC      libavfilter/vf_libvmaf.o
libavfilter/vf_libvmaf.c: In function 'call_vmaf':
libavfilter/vf_libvmaf.c:173:1: error: no return statement in function returning non-void [-Werror=return-type]

Existing function body is

 static void *call_vmaf(void *ctx)
    LIBVMAFContext *s = (LIBVMAFContext *) ctx;
    av_log(ctx, AV_LOG_INFO, "VMAF score: %f\n",s->vmaf_score);

Adding return NULL; results in successful compilation.

-Werror=return-type is set in configure so I assume that shouldn't be changed.

Change History (1)

comment:1 by Gyan, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.