mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 02:21:25 +00:00
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:
parent
c4461e70b9
commit
85c8cdf8bd
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue