diff options
author | Tim Walker <[email protected]> | 2016-09-17 15:45:38 +0200 |
---|---|---|
committer | Tim Walker <[email protected]> | 2016-09-17 15:45:38 +0200 |
commit | be6defbde7de260afc61d969c17a898a0fd28106 (patch) | |
tree | 720de878e154dcd7300318583323c49721a9511a /libhb/enctheora.c | |
parent | 2df5fe643ebabf4e03456167475b6ca2bbe13c74 (diff) |
libhb: use the new keyframe flag.
Diffstat (limited to 'libhb/enctheora.c')
-rw-r--r-- | libhb/enctheora.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libhb/enctheora.c b/libhb/enctheora.c index 12438058f..f721269b5 100644 --- a/libhb/enctheora.c +++ b/libhb/enctheora.c @@ -358,7 +358,12 @@ int enctheoraWork( hb_work_object_t * w, hb_buffer_t ** buf_in, buf->f.fmt = AV_PIX_FMT_YUV420P; buf->f.width = frame_width; buf->f.height = frame_height; - buf->s.frametype = ( th_packet_iskeyframe(&op) ) ? HB_FRAME_KEY : HB_FRAME_REF; + buf->s.flags = HB_FLAG_FRAMETYPE_REF; + buf->s.frametype = HB_FRAME_I; + if (th_packet_iskeyframe(&op)) + { + buf->s.flags |= HB_FLAG_FRAMETYPE_KEY; + } buf->s.start = in->s.start; buf->s.stop = in->s.stop; buf->s.duration = in->s.stop - in->s.start; |