From: handbrake Date: Tue, 6 Aug 2013 14:05:24 +0000 (+0000) Subject: QSV: param check: LA should be within range X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b69688e3d2a80be3004fea1a53846f45a3736ca;p=handbrake QSV: param check: LA should be within range git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5693 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 57c1f0851..38dafd5b9 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -494,7 +494,7 @@ int qsv_enc_init(av_qsv_context *qsv, hb_work_private_t *pv) if (hb_qsv_info->capabilities & HB_QSV_CAP_OPTION2_LOOKAHEAD) if ((entry = hb_dict_get(qsv_opts_dict, QSV_NAME_lookaheaddepth)) != NULL && entry->value != NULL) - pv->la_depth = atoi(entry->value); + pv->la_depth = HB_QSV_CLIP3(11,50, atoi(entry->value)); // range of: >10 and <=50 else pv->la_depth = 40; // default: value