code: Wrong return type for get_avcodeccontext

The context should be modifiable, we don't really care about it anyway. If it's broken, then it's broken and the encoder errors out.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2023-05-16 01:11:28 +02:00 committed by Xaymar
parent c4461e70b9
commit 85c8cdf8bd
2 changed files with 2 additions and 2 deletions

View File

@ -781,7 +781,7 @@ const AVCodec* ffmpeg_instance::get_avcodec()
return _codec;
}
const AVCodecContext* ffmpeg_instance::get_avcodeccontext()
AVCodecContext* ffmpeg_instance::get_avcodeccontext()
{
return _context;
}

View File

@ -103,7 +103,7 @@ namespace streamfx::encoder::ffmpeg {
const AVCodec* get_avcodec();
const AVCodecContext* get_avcodeccontext();
AVCodecContext* get_avcodeccontext();
void parse_ffmpeg_commandline(std::string_view text);
};