From be6defbde7de260afc61d969c17a898a0fd28106 Mon Sep 17 00:00:00 2001 From: Tim Walker Date: Sat, 17 Sep 2016 15:45:38 +0200 Subject: libhb: use the new keyframe flag. --- libhb/qsv_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libhb/qsv_common.c') diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 08d7f9c59..bb5dbc15a 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -2039,8 +2039,9 @@ uint8_t hb_qsv_frametype_xlat(uint16_t qsv_frametype, uint16_t *out_flags) uint16_t flags = 0; uint8_t frametype = 0; - if (qsv_frametype & MFX_FRAMETYPE_IDR) + if (qsv_frametype & MFX_FRAMETYPE_IDR) { + flags |= HB_FLAG_FRAMETYPE_KEY; frametype = HB_FRAME_IDR; } else if (qsv_frametype & MFX_FRAMETYPE_I) @@ -2058,7 +2059,7 @@ uint8_t hb_qsv_frametype_xlat(uint16_t qsv_frametype, uint16_t *out_flags) if (qsv_frametype & MFX_FRAMETYPE_REF) { - flags |= HB_FRAME_REF; + flags |= HB_FLAG_FRAMETYPE_REF; } if (out_flags != NULL) -- cgit v1.2.3