[Bug 791479] msdkenc: Support force-keyunit events

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Feb 21 08:31:40 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=791479

--- Comment #4 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Comment on attachment 368685
  --> https://bugzilla.gnome.org/attachment.cgi?id=368685
msdk: enc: support force key unit event

>+    /* Force key-frame if needed */
>+    if (GST_VIDEO_CODEC_FRAME_IS_FORCE_KEYFRAME (input_frame))
>+      thiz->enc_cntrl.FrameType =
>+          MFX_FRAMETYPE_I | MFX_FRAMETYPE_IDR | MFX_FRAMETYPE_REF;
>+    else
>+      thiz->enc_cntrl.FrameType = MFX_FRAMETYPE_UNKNOWN;

Not that I know how this API works, but shouldn't this be just

 thiz->enc_cntrl.FrameType = MFX_FRAMETYPE_IDR;

?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list