From 29d946541d73c59279cbf7563a20296263420c65 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sun, 23 Jun 2013 20:11:40 +0000 Subject: [PATCH] QSV: enc_qsv, set hb_job_t.areBframes. Some muxers need this information. git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5602 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/enc_qsv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 0ad08f2ec..26a245765 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -686,6 +686,10 @@ int encqsvInit( hb_work_object_t * w, hb_job_t * job ) } } + // let the muxer know whether to expect B-frames or not + // FIXME: we must do this here even though we don't have all the info yet + job->areBframes = pv->codec_profile != MFX_PROFILE_AVC_BASELINE; + // tbd make it very properly w->config->h264.sps[1] = profile; w->config->h264.sps[2] = 0; -- 2.40.0