Skip to content

Commit 319e381

Browse files
Zaggy1024gmta
authored andcommitted
LibMedia: Mark FFmpegVideoDecoder functions with virtual override
The destructor lacked any of these specifiers, and others lacked the virtual specifier.
1 parent fc1cc49 commit 319e381

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Libraries/LibMedia/FFmpeg/FFmpegVideoDecoder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class MEDIA_API FFmpegVideoDecoder final : public VideoDecoder {
1818
public:
1919
static DecoderErrorOr<NonnullOwnPtr<FFmpegVideoDecoder>> try_create(CodecID, ReadonlyBytes codec_initialization_data);
2020
FFmpegVideoDecoder(AVCodecContext* codec_context, AVPacket* packet, AVFrame* frame);
21-
~FFmpegVideoDecoder();
21+
virtual ~FFmpegVideoDecoder() override;
2222

23-
DecoderErrorOr<void> receive_coded_data(AK::Duration timestamp, ReadonlyBytes coded_data) override;
24-
DecoderErrorOr<NonnullOwnPtr<VideoFrame>> get_decoded_frame() override;
23+
virtual DecoderErrorOr<void> receive_coded_data(AK::Duration timestamp, ReadonlyBytes coded_data) override;
24+
virtual DecoderErrorOr<NonnullOwnPtr<VideoFrame>> get_decoded_frame() override;
2525

26-
void flush() override;
26+
virtual void flush() override;
2727

2828
private:
2929
AVCodecContext* m_codec_context;

0 commit comments

Comments
 (0)