]> granicus.if.org Git - handbrake/commitdiff
encavcodec: set frame.key_frame for AMD VCE encoder
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 15 Jan 2019 00:45:27 +0000 (16:45 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 16 Jan 2019 21:50:38 +0000 (13:50 -0800)
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

index 398cd6e5a258523a4905ace16d60f28b3c7d505b..c53d73994a72e7571d18bc6224abe16e422afb6a 100644 (file)
@@ -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);
     }