aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host1x/codecs/decoder.cpp
diff options
context:
space:
mode:
authorMaranBr <maranbr@outlook.com>2025-10-02 00:15:14 +0200
committercrueter <crueter@eden-emu.dev>2025-10-02 00:15:14 +0200
commit326865cba2641f693d8500506594c387259dfc11 (patch)
tree372fbe72d05f7aba859917ac673f0360dbbcb5ee /src/video_core/host1x/codecs/decoder.cpp
parent76b5d6778ec6245979a9f6963616d7fadb814d76 (diff)
[host1x] Improve FFmpeg error handling (#2643)
This improves the FFmpeg error handling. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2643 Co-authored-by: MaranBr <maranbr@outlook.com> Co-committed-by: MaranBr <maranbr@outlook.com>
Diffstat (limited to 'src/video_core/host1x/codecs/decoder.cpp')
-rwxr-xr-xsrc/video_core/host1x/codecs/decoder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/host1x/codecs/decoder.cpp b/src/video_core/host1x/codecs/decoder.cpp
index cb17784b19..887eb28c8c 100755
--- a/src/video_core/host1x/codecs/decoder.cpp
+++ b/src/video_core/host1x/codecs/decoder.cpp
@@ -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;