FFmpeg: encoders - call avcodec_parameters_from_context after opening codec


We need to call avcodec_parameters_from_context after opening the codec
as it may otherwise not be populated correctly.
As a drive-by add better error reporting

Pick-to: 6.12
Change-Id: Id688677e83868fc05f78f7e78412c1d091b1578f
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commitf7c05dee4ba54f1c30124d15ae45457ce79b855d
parentfc6aa84a3186be325443c3f22733543ae44b148e
authorTim Blechmann <tim@klingt.org>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeThu, 13 Aug 2026 12:55:54 +0000