Improve FFmpeg error handling

This commit is contained in:
MaranBr 2025-10-01 11:38:22 -04:00 committed by crueter
parent 61adc85c4b
commit ea03821be2
4 changed files with 21 additions and 12 deletions

View file

@ -38,6 +38,10 @@ void Decoder::Decode() {
// Receive output frames from decoder.
auto frame = decode_api.ReceiveFrame();
if (!frame) {
return;
}
if (IsInterlaced()) {
auto [luma_top, luma_bottom, chroma_top, chroma_bottom] = GetInterlacedOffsets();
auto frame_copy = frame;