[FFmpeg-trac] #6878(undetermined:new): Error compiling libvmaf filter in MinGW
FFmpeg
trac at avcodec.org
Mon Nov 27 16:17:45 EET 2017
#6878: Error compiling libvmaf filter in MinGW
-------------------------------------+-------------------------------------
Reporter: Gyan | Type: defect
Status: new | Priority: important
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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;
compute_vmaf_score(s);
av_log(ctx, AV_LOG_INFO, "VMAF score: %f\n",s->vmaf_score);
pthread_exit(NULL);
}
}}}
Adding `return NULL;` results in successful compilation.
`-Werror=return-type` is set in configure so I assume that shouldn't be
changed.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6878>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list