From 9e6f310208ff7df7345724c87ca8ef84fdaa7270 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Mon, 14 Jan 2019 16:45:27 -0800 Subject: [PATCH] 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 --- libhb/encavcodec.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.40.0