]>
Commit | Line | Data |
---|---|---|
85f589ba JB |
1 | From d2f6facbfb89f13a891e710b44e1561570de006a Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= | |
3 | <vjaquez@igalia.com> | |
4 | Date: Wed, 8 May 2019 13:35:25 +0200 | |
5 | Subject: openh264enc: Fix compilation with openh264 v2.0 | |
6 | ||
7 | As OpenH264 increased its version to 2.0 the guard for structure | |
8 | member is not valid. | |
9 | ||
10 | This patch will fix the compilation with gst-build and openh264. | |
11 | --- | |
12 | ext/openh264/gstopenh264enc.cpp | 2 +- | |
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
14 | ||
15 | (limited to 'ext/openh264/gstopenh264enc.cpp') | |
16 | ||
17 | diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp | |
18 | index aa8138d..11be2a5 100644 | |
19 | --- a/ext/openh264/gstopenh264enc.cpp | |
20 | +++ b/ext/openh264/gstopenh264enc.cpp | |
21 | @@ -739,7 +739,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder, | |
22 | enc_params.bEnableSceneChangeDetect = openh264enc->scene_change_detection; | |
23 | enc_params.bEnableFrameSkip = openh264enc->enable_frame_skip; | |
24 | enc_params.bEnableLongTermReference = 0; | |
25 | -#if OPENH264_MINOR >= 4 | |
26 | +#if (OPENH264_MAJOR > 1 || (OPENH264_MAJOR == 1 && OPENH264_MINOR >= 4)) | |
27 | enc_params.eSpsPpsIdStrategy = CONSTANT_ID; | |
28 | #else | |
29 | enc_params.bEnableSpsPpsIdAddition = 0; | |
30 | -- | |
31 | cgit v1.1 | |
32 |