summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/nvdec.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-04 01:34:07 +0100
committerGitHub <noreply@github.com>2020-11-04 01:34:07 +0100
commit4bfa411ddcf3b5454c85ada70f28438feaaae93e (patch)
treebf7e27c7e5ba36ace45e36b93cc533835d7cfb91 /src/video_core/command_classes/nvdec.h
parentMerge pull request #4887 from lioncash/common-build (diff)
parentnvdec: Make use of [[nodiscard]] where applicable (diff)
downloadyuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar
yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.gz
yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.bz2
yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.lz
yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.xz
yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.tar.zst
yuzu-4bfa411ddcf3b5454c85ada70f28438feaaae93e.zip
Diffstat (limited to 'src/video_core/command_classes/nvdec.h')
-rw-r--r--src/video_core/command_classes/nvdec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/command_classes/nvdec.h b/src/video_core/command_classes/nvdec.h
index af14f9857..eec4443f9 100644
--- a/src/video_core/command_classes/nvdec.h
+++ b/src/video_core/command_classes/nvdec.h
@@ -26,8 +26,8 @@ public:
void ProcessMethod(Method method, const std::vector<u32>& arguments);
/// Return most recently decoded frame
- AVFrame* GetFrame();
- const AVFrame* GetFrame() const;
+ [[nodiscard]] AVFrame* GetFrame();
+ [[nodiscard]] const AVFrame* GetFrame() const;
private:
/// Invoke codec to decode a frame