zmwangx / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
1.3k stars 203 forks source link

Input PacketIter should return an Result value #210

Open chertov opened 1 month ago

chertov commented 1 month ago

Hi! In some cases, I encountered application freezes when working with surveillance cameras via RTSP, as the current code does not return errors. I created a patch and am using my own fork. If you want to ensure compatibility, it might be worth considering creating a separate method to obtain an iterator that includes error handling? Thanks!)