Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655024 - media-libs/opencv-3.3.0-r5 API incompatible with >= media-video/ffmpeg-4.0
Summary: media-libs/opencv-3.3.0-r5 API incompatible with >= media-video/ffmpeg-4.0
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
Depends on:
Blocks: ffmpeg-4
  Show dependency tree
Reported: 2018-05-05 23:54 UTC by Reuben Martin
Modified: 2018-09-21 15:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

build log (opencv-ffmpeg.log,4.41 KB, text/plain)
2018-05-05 23:59 UTC, Reuben Martin
opencv-3.3.0-ffmpeg-4.0-compatibility.patch (file_655024.txt,4.23 KB, patch)
2018-05-18 23:19 UTC, Quentin Minster
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2018-05-05 23:54:56 UTC
See summary.

Reproducible: Always
Comment 1 Reuben Martin 2018-05-05 23:59:15 UTC
Created attachment 530058 [details]
build log

Relevant part of compiler output
Comment 2 Quentin Minster 2018-05-18 23:19:17 UTC
Created attachment 532102 [details, diff]

Here is a patch fixing the build with >=media-video/ffmpeg-4.0.

It *should* also work with <media-video/ffmpeg-4.0, but I didn't check.
Comment 3 Carl Eugen Hoyos 2018-06-17 22:52:57 UTC
The first hunk of the patch is both wrong and unneeded:
The defines are not part of libavformat but libavcodec, AV_CODEC_FLAG_GLOBAL_HEADER was added in FFmpeg 2.8, AV_PKT_FLAG_KEY in FFmpeg 0.9.
Comment 4 Andreas Sturmlechner gentoo-dev 2018-09-16 11:49:17 UTC
Comment 5 Amy Liffey gentoo-dev 2018-09-16 11:52:44 UTC
(In reply to Andreas Sturmlechner from comment #4)
> ping

Should be fine in 3.4.1?
Comment 6 Andreas Sturmlechner gentoo-dev 2018-09-21 15:14:46 UTC
(In reply to Amy Liffey from comment #5)
> Should be fine in 3.4.1?

Correct! Built fine with 3.4.1-r4.