summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/codecs
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2021-12-13 02:28:52 +0100
committerliushuyu <liushuyu011@gmail.com>2021-12-14 06:31:19 +0100
commitdd72e4dce4641498bd7e73f09afd7d90961c435d (patch)
tree39ca50e569b17e002657484be046e0878b355bbc /src/video_core/command_classes/codecs
parentvideo_core/codecs: skip decoders that use hw frames ... (diff)
downloadyuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar.gz
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar.bz2
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar.lz
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar.xz
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.tar.zst
yuzu-dd72e4dce4641498bd7e73f09afd7d90961c435d.zip
Diffstat (limited to 'src/video_core/command_classes/codecs')
-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() {
final_frame->format = PREFERRED_GPU_FMT;
const int ret = av_hwframe_transfer_data(final_frame.get(), initial_frame.get(), 0);
ASSERT_MSG(!ret, "av_hwframe_transfer_data error {}", ret);
- // null the hw frame context to prevent the buffer from being deleted
- // and leaving a dangling reference in the av_codec_ctx
- initial_frame->hw_frames_ctx = nullptr;
} else {
final_frame = std::move(initial_frame);
}