| Summary: | media-sound/forked-daapd-23.2-r1 with >=media-video/ffmpeg-4 - transcode.c:585:37: error: ‘CODEC_CAP_TRUNCATED’ undeclared (first use in this function) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Gordon Bos <bugzilla> |
| Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | treecleaner |
| Priority: | Normal | Keywords: | PMASKED |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Package removed. |
Version bump of ffmpeg from 3.4.x to 4.x requires a rebuild of forked-daapd. This fails with the following error: ``` In file included from transcode.c:42:0: /usr/include/libavformat/avformat.h:878:21: note: declared here AVCodecContext *codec; ^~~~~ transcode.c:585:37: error: ‘CODEC_CAP_TRUNCATED’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_TRUNCATED’? if (ctx->adecoder->capabilities & CODEC_CAP_TRUNCATED) ^~~~~~~~~~~~~~~~~~~ AV_CODEC_CAP_TRUNCATED transcode.c:585:37: note: each undeclared identifier is reported only once for each function it appears in transcode.c:586:27: error: ‘CODEC_FLAG_TRUNCATED’ undeclared (first use in this function); did you mean ‘CODEC_CAP_TRUNCATED’? ctx->acodec->flags |= CODEC_FLAG_TRUNCATED; ^~~~~~~~~~~~~~~~~~~~ CODEC_CAP_TRUNCATED transcode.c: In function ‘transcode_cleanup’: ``` The cause for this appears to be that ffmpeg-4.x no longer accepts the FF_API_WITHOUT_PREFIX macro and this version of the forked-daapd code seemingly being somewhere half way between supporting both the old and the new macro names. I understand from bug #609272 that forked-daapd is to be bumped to version 25, however that statement is over a year old. What is the status on this?