Encoder: Fix in signalling direct_8x8_inference_flag in SPS

For level 3.0 and above this value should be set to 1 as per spec

Change-Id: I6930e4e5165e4c5012997f009cbe05397303d650
This commit is contained in:
Harish Mahendrakar 2016-02-03 11:03:44 +05:30
parent 98a713ba39
commit 7f1e3b7b07

View file

@ -933,7 +933,14 @@ IH264E_ERROR_T ih264e_populate_sps(codec_t *ps_codec, sps_t *ps_sps)
}
/* direct_8x8_inference_flag */
ps_sps->i1_direct_8x8_inference_flag = 0;
if (ps_sps->u1_level_idc < IH264_LEVEL_30)
{
ps_sps->i1_direct_8x8_inference_flag = 0;
}
else
{
ps_sps->i1_direct_8x8_inference_flag = 1;
}
/* cropping params */
/*NOTE : Cropping values depend on the chroma format