media: rpivid: Remove the need to have num_entry_points set
authorJohn Cox <jc@kynesim.co.uk>
Thu, 21 May 2020 10:49:37 +0000 (11:49 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:14 +0000 (16:04 +0000)
commit020bea860af5a6d1158fa79631e4c40aa567561a
tree3e51d20c6a474d44048e4a44cc33c0ebdfe7bb93
parentbcc909e36504339985e67f922b1053af2768ba7f
media: rpivid: Remove the need to have num_entry_points set

VAAPI H265 has num entry points but never sets it. Allow a VAAPI
shim to work without requiring rewriting the VAAPI driver.
num_entry_points can be calculated from the slice_segment_addr
of the next slice so delay processing until we have that.

Also includes some minor cosmetics.

Signed-off-by: John Cox <jc@kynesim.co.uk>
drivers/staging/media/rpivid/rpivid_h265.c