[PATCH 07/12] media: hantro: h264: Move reference picture number to a helper