mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
vtenc: Use kVTProfileLevel_H264_Baseline_AutoLevel only on iOS
It is not required on OSX apparently and was only added in 10.9.6 there. Calculating the correct level from the configuration is not trivial, so let's just not set a level at all here.
This commit is contained in:
parent
b57f255f26
commit
ad649138aa
1 changed files with 3 additions and 0 deletions
|
@ -475,11 +475,14 @@ gst_vtenc_create_session (GstVTEnc * self)
|
|||
gst_vtenc_session_configure_expected_framerate (self, session,
|
||||
(gdouble) self->negotiated_fps_n / (gdouble) self->negotiated_fps_d);
|
||||
|
||||
/* FIXME: This is only available since OS X 10.9.6 */
|
||||
#if HAVE_IOS
|
||||
status = VTSessionSetProperty (session,
|
||||
kVTCompressionPropertyKey_ProfileLevel,
|
||||
kVTProfileLevel_H264_Baseline_AutoLevel);
|
||||
GST_DEBUG_OBJECT (self, "kVTCompressionPropertyKey_ProfileLevel => %d",
|
||||
(int) status);
|
||||
#endif
|
||||
|
||||
status = VTSessionSetProperty (session,
|
||||
kVTCompressionPropertyKey_AllowTemporalCompression, kCFBooleanTrue);
|
||||
|
|
Loading…
Reference in a new issue