summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-27 07:20:17 +0100
committerLioncash <mathew1800@gmail.com>2020-10-27 07:20:17 +0100
commitdcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789 (patch)
treea12a937c5f0702422f652f698e3ad41ae9033ca4 /src
parentnvdec: Tidy up header includes (diff)
downloadyuzu-dcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789.tar
yuzu-dcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789.tar.gz
yuzu-dcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789.tar.bz2
yuzu-dcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789.tar.lz
yuzu-dcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789.tar.xz
yuzu-dcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789.tar.zst
yuzu-dcc26c54a52eb6fe2fc5fcb7a4b34bc1a4ad4789.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/command_classes/codecs/vp9.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.cpp b/src/video_core/command_classes/codecs/vp9.cpp
index d888e773a..04e015ae8 100644
--- a/src/video_core/command_classes/codecs/vp9.cpp
+++ b/src/video_core/command_classes/codecs/vp9.cpp
@@ -415,7 +415,7 @@ Vp9FrameContainer VP9::GetCurrentFrame(const NvdecCommon::NvdecRegisters& state)
frame.info.bitstream_size);
}
// Buffer two frames, saving the last show frame info
- if (next_next_frame.bit_stream.size() != 0) {
+ if (!next_next_frame.bit_stream.empty()) {
Vp9FrameContainer temp{
.info = frame.info,
.bit_stream = frame.bit_stream,
@@ -425,15 +425,15 @@ Vp9FrameContainer VP9::GetCurrentFrame(const NvdecCommon::NvdecRegisters& state)
frame.bit_stream = next_next_frame.bit_stream;
next_next_frame = std::move(temp);
- if (next_frame.bit_stream.size() != 0) {
- Vp9FrameContainer temp{
+ if (!next_frame.bit_stream.empty()) {
+ Vp9FrameContainer temp2{
.info = frame.info,
.bit_stream = frame.bit_stream,
};
next_frame.info.show_frame = frame.info.last_frame_shown;
frame.info = next_frame.info;
frame.bit_stream = next_frame.bit_stream;
- next_frame = std::move(temp);
+ next_frame = std::move(temp2);
} else {
next_frame.info = frame.info;
next_frame.bit_stream = frame.bit_stream;