set max reference frame to 1
BZ: 107416
in psb_video, if max reference frame is 4, the level will be re-calculated with new rule
so set to 1 as only 1 frame referenced during encoding
Change-Id: I40d670af67b8f2620b9f0194c7c633edadbd990b
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/107839
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/videoencoder/VideoEncoderAVC.cpp b/videoencoder/VideoEncoderAVC.cpp
index a21063f..57ff5d5 100644
--- a/videoencoder/VideoEncoderAVC.cpp
+++ b/videoencoder/VideoEncoderAVC.cpp
@@ -903,9 +903,7 @@
avcSeqParams.sar_height = mVideoParamsAVC.SAR.SarHeight;
}
- // This is a temporary fix suggested by Binglin for bad encoding quality issue
- avcSeqParams.max_num_ref_frames = (mEncMaxRefFrames != VA_ATTRIB_NOT_SUPPORTED) ?
- mEncMaxRefFrames : 1;
+ avcSeqParams.max_num_ref_frames = 1;
if(avcSeqParams.ip_period > 1)
avcSeqParams.max_num_ref_frames = 2;