After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758482 - gegl 0.3.2 make failure: 'AV_CODEC_FLAG2_FAST' undeclared
gegl 0.3.2 make failure: 'AV_CODEC_FLAG2_FAST' undeclared
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: build
git master
Other Linux
: Normal normal
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
Depends on:
Blocks:
 
 
Reported: 2015-11-22 03:02 UTC by John
Modified: 2015-11-22 20:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John 2015-11-22 03:02:02 UTC
make failed on 64-bit Linux Mint Debian...

ff-load.c: In function 'prepare':
ff-load.c:468:40: error: 'AV_CODEC_FLAG2_FAST' undeclared (first use in this function)
       p->video_stream->codec->flags2 = AV_CODEC_FLAG2_FAST;
                                        ^
ff-load.c:468:40: note: each undeclared identifier is reported only once for each function it appears in
Makefile:1172: recipe for target 'ff_load_la-ff-load.lo' failed


Searching the source tree revealed no other reference to AV_CODEC_FLAG2_FAST:

john@haystack ~/src/gegl-0.3.2 $ grep -r "AV_CODEC_FLAG2_FAST" *
operations/external/ff-load.c.h:"      p->video_stream->codec->flags2 = AV_CODEC_FLAG2_FAST;                   \n"
operations/external/ff-load.c:      p->video_stream->codec->flags2 = AV_CODEC_FLAG2_FAST;


Anyone else encounter this?
Comment 1 Øyvind Kolås (pippin) 2015-11-22 13:26:41 UTC
It wouldn't be defined elsewhere in GEGL it should come from ffmpeg. You could try simply removing this line, what version of ffmpeg are you using the following command should output it:

$ pkg-config libavcodec --modversion
Comment 2 Øyvind Kolås (pippin) 2015-11-22 20:03:16 UTC
Better be conservative with fine tuning of the ffmpeg codecs though; and tend towards more public/stable APIs. Assuming that is the only undeclared thing this commit pushed to master should make it build.

commit c2019ca59457bb71784c663a079a3b12a865f334
Author: Øyvind Kolås <pippin@gimp.org>
Date:   Sun Nov 22 20:56:20 2015 +0100

    ff-load: be more conservative with setting special optimization flags