summaryrefslogtreecommitdiffstats
path: root/libhb/qsv_common.c
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2016-09-17 15:45:38 +0200
committerTim Walker <[email protected]>2016-09-17 15:45:38 +0200
commitbe6defbde7de260afc61d969c17a898a0fd28106 (patch)
tree720de878e154dcd7300318583323c49721a9511a /libhb/qsv_common.c
parent2df5fe643ebabf4e03456167475b6ca2bbe13c74 (diff)
libhb: use the new keyframe flag.
Diffstat (limited to 'libhb/qsv_common.c')
-rw-r--r--libhb/qsv_common.c5
1 files changed, 3 insertions, 2 deletions
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)