Could you please tell me how to reset the value of nal_reference_idc?
I've noticed that the value of nal_reference_idc was 1 in IDR frame after the operation of sample_encode H264,
but how can I make it as 3 instead of 1.
Can you specify on what you are trying to change exactly? i tried to look at the demo and not sure i understood.
did you mean max_num_ref_frames?
If so, it can be controlled by mfxVideoParam-> mfxInfoMFX-> NumRefFrame
The nal_ref_idc is the priority of a NAL unit.For example the data like "......00 00 00 01 27......"means a start of a SPS NAL.
The data 0x27 means the priorfy of the NAL is 1(the second and the third bit of 0010 0111b is 01b). What i want to do is to change this value to 3(11b).