[FFmpeg-devel] STF Idea: Check I/O calls in avformat (robustness)
Derek Buitenhuis
derek.buitenhuis at gmail.com
Mon Jun 2 20:08:17 EEST 2025
Hi,
Dropping this grenade in here then unsubscribing.
I see a lot of discussion on FEC, protocols, etc. for STF.
But having those is almost pointless given avformat doesn't even check
read and write calls in most places (even ignoring ensured seekbacks,
buffer, etc.).
A quick grep shows ~462 unchecked avio_r*, for example.
What this means is that avformat itself is basically ununsuable in
anything but perfect network conditions.
Given STF is supposed to be used for useful stability and maitenence
work, I propose a project to properly check I/O in avformat, so that
any hiccup doesn't explode everything in unexpected ways.
This exactly the sort of slog (boring, tedious, but extremely useful)
that requires someone being paid to do to get done.
Cheers,
Grenade Boi
UwU
More information about the ffmpeg-devel
mailing list