summaryrefslogtreecommitdiffstats
path: root/libhb/encx265.c
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2016-09-17 14:54:01 +0200
committerTim Walker <[email protected]>2016-09-17 15:46:31 +0200
commit843e327e0d62e730c0d36d5cbe1e43d9dd329308 (patch)
treec7593c5bf2f3c916ee64e09acdd3d63b87de9a23 /libhb/encx265.c
parent0b16fbf384d253ba6e76e524e7d334bba2f93270 (diff)
encx265: flag all HEVC random access points as keyframes.
Diffstat (limited to 'libhb/encx265.c')
-rw-r--r--libhb/encx265.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c
index 9cb23bd08..fdfe7cf21 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -390,6 +390,11 @@ static hb_buffer_t* nal_encode(hb_work_object_t *w,
// copy the bitstream data
for (i = 0; i < nnal; i++)
{
+ if (HB_HEVC_NALU_KEYFRAME(nal[i].type))
+ {
+ buf->s.flags |= HB_FLAG_FRAMETYPE_REF;
+ buf->s.flags |= HB_FLAG_FRAMETYPE_KEY;
+ }
memcpy(buf->data + buf->size, nal[i].payload, nal[i].sizeBytes);
buf->size += nal[i].sizeBytes;
}