[PATCH 5.18 0508/1095] media: cedrus: hevc: Add check for invalid timestamp