[PATCH] media: cedrus: skip invalid H.264 reference list entries

Pengpeng Hou pengpeng at iscas.ac.cn
Thu Apr 9 07:30:00 PDT 2026


Hi Paul,

Thanks, that makes sense.

I agree Cedrus should not silently skip an invalid index in the active
portion of ref_pic_list0/ref_pic_list1.

I'll respin this to keep the check at the Cedrus use site rather than
cedrus_try_ctrl(), but return -EINVAL when one of the active reference
entries points past V4L2_H264_NUM_DPB_ENTRIES. Entries beyond
num_ref_idx_l0_active_minus1 / num_ref_idx_l1_active_minus1 will still
be ignored as before.

Thanks,
Pengpeng





More information about the linux-arm-kernel mailing list