summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/codecs/codec.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-30 21:13:29 +0100
committerLioncash <mathew1800@gmail.com>2020-11-02 08:45:15 +0100
commit4f0f481f63d0d5587a6d6d319f9815de87ed79ec (patch)
treee35c6800340cec5f104e094a377c69ccc3dd101f /src/video_core/command_classes/codecs/codec.h
parentCMakeLists: Resolve MSVC build failures (diff)
downloadyuzu-4f0f481f63d0d5587a6d6d319f9815de87ed79ec.tar
yuzu-4f0f481f63d0d5587a6d6d319f9815de87ed79ec.tar.gz
yuzu-4f0f481f63d0d5587a6d6d319f9815de87ed79ec.tar.bz2
yuzu-4f0f481f63d0d5587a6d6d319f9815de87ed79ec.tar.lz
yuzu-4f0f481f63d0d5587a6d6d319f9815de87ed79ec.tar.xz
yuzu-4f0f481f63d0d5587a6d6d319f9815de87ed79ec.tar.zst
yuzu-4f0f481f63d0d5587a6d6d319f9815de87ed79ec.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/command_classes/codecs/codec.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/command_classes/codecs/codec.h b/src/video_core/command_classes/codecs/codec.h
index cb67094f6..5bbe6a332 100644
--- a/src/video_core/command_classes/codecs/codec.h
+++ b/src/video_core/command_classes/codecs/codec.h
@@ -42,11 +42,11 @@ public:
void Decode();
/// Returns most recently decoded frame
- AVFrame* GetCurrentFrame();
- const AVFrame* GetCurrentFrame() const;
+ [[nodiscard]] AVFrame* GetCurrentFrame();
+ [[nodiscard]] const AVFrame* GetCurrentFrame() const;
/// Returns the value of current_codec
- NvdecCommon::VideoCodec GetCurrentCodec() const;
+ [[nodiscard]] NvdecCommon::VideoCodec GetCurrentCodec() const;
private:
bool initialized{};