openh264enc: Use a constant SPS/PPS ID no matter if openh264 older or newer than 1.4 is used

This commit is contained in:
Sebastian Dröge 2016-06-30 23:06:29 +02:00
parent 4cba0d5fab
commit f5f437b707

View file

@ -670,7 +670,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder,
#if OPENH264_MINOR >= 4
enc_params.eSpsPpsIdStrategy = CONSTANT_ID;
#else
enc_params.bEnableSpsPpsIdAddition = 1;
enc_params.bEnableSpsPpsIdAddition = 0;
#endif
enc_params.bPrefixNalAddingCtrl = 0;
enc_params.fMaxFrameRate = fps_n * 1.0 / fps_d;