[h264e]: Fix error of missing cropping info

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I773027fee1d0b0b0f16efa118a0447cf08c7835a
This commit is contained in:
Herman Chen
2020-04-01 08:48:13 +08:00
parent 2548db477e
commit 8191f70f91

View File

@@ -148,6 +148,7 @@ MPP_RET h264e_sps_update(SynH264eSps *sps, MppEncCfgSet *cfg, MppDeviceId dev)
// baseline disable 8x8 // baseline disable 8x8
sps->direct8x8_inference = h264->transform8x8_mode; sps->direct8x8_inference = h264->transform8x8_mode;
if (crop_right || crop_bottom) { if (crop_right || crop_bottom) {
sps->cropping = 1;
sps->crop.left = 0; sps->crop.left = 0;
sps->crop.right = crop_right; sps->crop.right = crop_right;
sps->crop.top = 0; sps->crop.top = 0;