diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/command_classes/codecs/codec.cpp | 3 |
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 | } |