aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2018-04-25 01:44:13 +0800
committerjbeich <jbeich@FreeBSD.org>2018-04-25 01:44:13 +0800
commit07f915c735231c5457330eddb58f51fa8665eb05 (patch)
tree590061e48ed04a818e72cb7c69c39de6ccc20faa
parent7b8bf67bc013ae9d02ca42c74767b06d2d469e26 (diff)
downloadfreebsd-ports-gnome-07f915c735231c5457330eddb58f51fa8665eb05.tar.gz
freebsd-ports-gnome-07f915c735231c5457330eddb58f51fa8665eb05.tar.zst
freebsd-ports-gnome-07f915c735231c5457330eddb58f51fa8665eb05.zip
emulators/kcemu: unbreak with ffmpeg 4.0
ffmpeg.cc:83:30: error: use of undeclared identifier 'CODEC_FLAG_GLOBAL_HEADER' _stream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER; ^ PR: 227726
-rw-r--r--emulators/kcemu/files/patch-src-ui-gtk-ffmpeg.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/emulators/kcemu/files/patch-src-ui-gtk-ffmpeg.cc b/emulators/kcemu/files/patch-src-ui-gtk-ffmpeg.cc
index e60688876c8c..632db32f351e 100644
--- a/emulators/kcemu/files/patch-src-ui-gtk-ffmpeg.cc
+++ b/emulators/kcemu/files/patch-src-ui-gtk-ffmpeg.cc
@@ -36,7 +36,8 @@
// some formats want stream headers to be separate
if (_context->oformat->flags & AVFMT_GLOBALHEADER)
- _stream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
+- _stream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
++ _stream->codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
- if (av_set_parameters(_context, NULL) < 0)
- {