mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 13:16:32 -06:00
videoio: port Python stream seek and callback fixes to 5.x 🤖🤖🤖 Forward-port #30798 from 4.x to 5.x. Opening some videos from a Python stream can fail when a seek offset exceeds the signed 32-bit range. This port preserves 64-bit stream arguments, handles Python callback failures and stream cleanup safely, and reports read failures to FFmpeg as I/O errors. The diff matches the merged 4.x patch. It includes the original Python videoio regressions and the standalone C++ regression for a throwing IStreamReader. The Python tests reuse fixtures already in opencv_extra/5.x.