LibMedia: Mark FFmpegVideoDecoder functions with virtual override

The destructor lacked any of these specifiers, and others lacked the
virtual specifier.
This commit is contained in:
Zaggy1024 2025-09-18 19:29:17 -05:00 committed by Jelle Raaijmakers
parent fc1cc49d6a
commit 319e381eb9
Notes: github-actions[bot] 2025-09-22 17:35:55 +00:00

View file

@ -18,12 +18,12 @@ class MEDIA_API FFmpegVideoDecoder final : public VideoDecoder {
public:
static DecoderErrorOr<NonnullOwnPtr<FFmpegVideoDecoder>> try_create(CodecID, ReadonlyBytes codec_initialization_data);
FFmpegVideoDecoder(AVCodecContext* codec_context, AVPacket* packet, AVFrame* frame);
~FFmpegVideoDecoder();
virtual ~FFmpegVideoDecoder() override;
DecoderErrorOr<void> receive_coded_data(AK::Duration timestamp, ReadonlyBytes coded_data) override;
DecoderErrorOr<NonnullOwnPtr<VideoFrame>> get_decoded_frame() override;
virtual DecoderErrorOr<void> receive_coded_data(AK::Duration timestamp, ReadonlyBytes coded_data) override;
virtual DecoderErrorOr<NonnullOwnPtr<VideoFrame>> get_decoded_frame() override;
void flush() override;
virtual void flush() override;
private:
AVCodecContext* m_codec_context;