System: Slackware64-current, ffmpeg-4.0
After upgrading to ffmpeg-4.0, tvheadend failed to start. Recompiling the latest git version (cloned today, 12th June) gives the following error:
-------------------------------------------------------------------------------------------------------------------------------------------------
CC src/transcoding/transcode/video.o
src/transcoding/transcode/context.c: In function 'tvh_context_open_filters':
src/transcoding/transcode/context.c:518:18: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
if (!(iavflt = avfilter_get_by_name(source_name))) {
^
src/transcoding/transcode/context.c:545:18: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
if (!(oavflt = avfilter_get_by_name(sink_name))) {
^
cc1: all warnings being treated as errors
make:
* [Makefile:704: /tmp/SBo/tvheadend-git20180612/build.linux/src/transcoding/transcode/context.o] Error 1
------------------------------------------------------------------------------------------------------------------------------------------------
Any fixes?
TIA,
--
Pete