science/paraview: Fix build with FFMpeg 8
Backport upstream commits from VTK to fix build with FFMpeg 8.
Approved by: portmgr (blanket)