rust-ffmpeg
rust-ffmpeg copied to clipboard
Infinite loop on attempt to read the next packet with error "Connection reset by peer."
I am using my fork of this library, with an added log message in case of reading the next packet causes an error:
https://github.com/pyldin601/rust-ffmpeg/blob/master/src/format/context/input.rs#L183
This implementation attempts to reread the packet in a loop, which results in an infinite loop, repeatedly printing the following message:
Packet read error in a loop: Connection reset by peer.
Packet read error in a loop: Connection reset by peer.
Packet read error in a loop: Connection reset by peer.
Packet read error in a loop: Connection reset by peer.
...
I could do a PR with handling "Connection reset by peer." the same way as handling Error::Eof
if it isn't intentional.