summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar liushuyu2021-12-12 18:28:52 -0700
committerGravatar liushuyu2021-12-13 22:31:19 -0700
commitdd72e4dce4641498bd7e73f09afd7d90961c435d (patch)
tree39ca50e569b17e002657484be046e0878b355bbc /src
parentvideo_core/codecs: skip decoders that use hw frames ... (diff)
downloadyuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar.gz
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar.xz
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.zip
CI: fix CI on Linux
Diffstat (limited to '')
-rw-r--r--src/video_core/command_classes/codecs/codec.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/video_core/command_classes/codecs/codec.cpp b/src/video_core/command_classes/codecs/codec.cpp
index 439c47209..868b82f9b 100644
--- a/src/video_core/command_classes/codecs/codec.cpp
+++ b/src/video_core/command_classes/codecs/codec.cpp
@@ -257,9 +257,6 @@ void Codec::Decode() {
257 final_frame->format = PREFERRED_GPU_FMT; 257 final_frame->format = PREFERRED_GPU_FMT;
258 const int ret = av_hwframe_transfer_data(final_frame.get(), initial_frame.get(), 0); 258 const int ret = av_hwframe_transfer_data(final_frame.get(), initial_frame.get(), 0);
259 ASSERT_MSG(!ret, "av_hwframe_transfer_data error {}", ret); 259 ASSERT_MSG(!ret, "av_hwframe_transfer_data error {}", ret);
260 // null the hw frame context to prevent the buffer from being deleted
261 // and leaving a dangling reference in the av_codec_ctx
262 initial_frame->hw_frames_ctx = nullptr;
263 } else { 260 } else {
264 final_frame = std::move(initial_frame); 261 final_frame = std::move(initial_frame);
265 } 262 }