Fix build

This commit is contained in:
MaranBr
2025-06-16 16:23:38 -04:00
parent 13ca79f6f0
commit 5c354edbc6

View File

@@ -183,7 +183,7 @@ bool HardwareContext::InitializeWithType(AVHWDeviceType type) {
}
DecoderContext::DecoderContext(const Decoder& decoder) : m_decoder{decoder} {
m_codec_context = avcodec_alloc_context3(m_codec);
m_codec_context = avcodec_alloc_context3(m_decoder.GetCodec());
av_opt_set(m_codec_context->priv_data, "preset", "veryfast", 0);
av_opt_set(m_codec_context->priv_data, "tune", "zerolatency", 0);