ports/multimedia/gstreamer1-plugins-bad/files/patch-ext_openh264_gstopenh264enc.cpp
Jan Beich edc42f3c38 multimedia/openh264: update to 2.0.0
- Add symlinks for cliqz and thunderbird

Changes:	https://github.com/cisco/openh264/releases/tag/v2.0.0
ABI:		https://abi-laboratory.pro/tracker/timeline/openh264/
Reported by:	GitHub (watch releases)
2019-06-17 07:56:06 +00:00

17 lines
791 B
C++

https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/commit/d2f6facbfb89
gstopenh264enc.cpp:745:14: error: no member named 'bEnableSpsPpsIdAddition' in 'TagEncParamExt'
enc_params.bEnableSpsPpsIdAddition = 0;
~~~~~~~~~~ ^
--- ext/openh264/gstopenh264enc.cpp.orig 2018-03-23 20:45:15 UTC
+++ ext/openh264/gstopenh264enc.cpp
@@ -739,7 +739,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder,
enc_params.bEnableSceneChangeDetect = openh264enc->scene_change_detection;
enc_params.bEnableFrameSkip = openh264enc->enable_frame_skip;
enc_params.bEnableLongTermReference = 0;
-#if OPENH264_MINOR >= 4
+#if (OPENH264_MAJOR > 1 || (OPENH264_MAJOR == 1 && OPENH264_MINOR >= 4))
enc_params.eSpsPpsIdStrategy = CONSTANT_ID;
#else
enc_params.bEnableSpsPpsIdAddition = 0;