From: John Stebbins Date: Tue, 15 Jan 2019 00:45:27 +0000 (-0800) Subject: encavcodec: set frame.key_frame for AMD VCE encoder X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e6f310208ff7df7345724c87ca8ef84fdaa7270;p=handbrake encavcodec: set frame.key_frame for AMD VCE encoder AMD VCE encoder needs this in order to force an IDR rather than an I frame. Fixes https://github.com/HandBrake/HandBrake/issues/1762 --- diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 398cd6e5a..c53d73994 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -859,6 +859,7 @@ static void Encode( hb_work_object_t *w, hb_buffer_t *in, when this frame finally pops out of the encoder we'll mark its buffer as the start of a chapter. */ frame.pict_type = AV_PICTURE_TYPE_I; + frame.key_frame = 1; hb_chapter_enqueue(pv->chapter_queue, in); }