aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host1x/codecs/decoder.cpp
diff options
context:
space:
mode:
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;