graphics/opencv: pull in upstream commits for ffmpeg 8 compatibility
Some functions were removed in ffmpeg 8.
Reference: https://github.com/opencv/opencv/issues/27688
https://github.com/opencv/opencv/pull/27691 https://github.com/opencv/opencv/pull/27746
PR: 291933