diff options
author | John Stebbins <[email protected]> | 2019-01-14 16:45:27 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-01-16 13:50:38 -0800 |
commit | 9e6f310208ff7df7345724c87ca8ef84fdaa7270 (patch) | |
tree | 35894e0d87f23a493f31a57451d2016b34192fc8 /libhb/encavcodec.c | |
parent | f0af7632557face2d516829386e01bf0c7a6c549 (diff) |
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
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |