FFmpeg: improve error handling


Some FFmpeg functions may fail. Adding some error handling codepaths
when possible and warn about failures.

Pick-to: 6.12
Change-Id: Iaf23a99e223ec7052c7d82e168a50fa45683ff98
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commit28af77cfe9ce3eaaa528c20fdcf6d3dc84de2049
parentf7c05dee4ba54f1c30124d15ae45457ce79b855d
authorTim Blechmann <tim@klingt.org>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeFri, 14 Aug 2026 02:29:41 +0000