OSDN Git Service

AVC encoder: fix ROI config for CQP
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 1 Dec 2017 20:59:40 +0000 (12:59 -0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 1 Dec 2017 21:08:42 +0000 (13:08 -0800)
commit6401a874e0b6bbbca8059c47a9100ccfe7d0c866
tree35fce5e4d9db6e1f21493f6ad6977c38dc712446
parent106d1eb730210b498c1f9fca9f4f5c3df82d056d
AVC encoder: fix ROI config for CQP

Introduced in:

commit 972e6f2b36499389bc7cb7bb34414423b5525143
Author: Xiang, Haihao <haihao.xiang@intel.com>
Date:   Wed Jan 4 09:40:47 2017 +0800

    AVC encoder: use generic ROI parameters

num_roi setting was lost and thus always 0, which essentially
disabled the "for (j = num_roi; j ; j--)" loop in the
VA_RC_CQP case.

Fix this by ensuring num_roi is set to the correct value stored
in the common structure.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/gen6_mfc_common.c