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
|
|
@ -781,7 +781,7 @@ const AVCodec* ffmpeg_instance::get_avcodec()
|
||||||
return _codec;
|
return _codec;
|
||||||
}
|
}
|
||||||
|
|
||||||
const AVCodecContext* ffmpeg_instance::get_avcodeccontext()
|
AVCodecContext* ffmpeg_instance::get_avcodeccontext()
|
||||||
{
|
{
|
||||||
return _context;
|
return _context;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ namespace streamfx::encoder::ffmpeg {
|
||||||
|
|
||||||
const AVCodec* get_avcodec();
|
const AVCodec* get_avcodec();
|
||||||
|
|
||||||
const AVCodecContext* get_avcodeccontext();
|
AVCodecContext* get_avcodeccontext();
|
||||||
|
|
||||||
void parse_ffmpeg_commandline(std::string_view text);
|
void parse_ffmpeg_commandline(std::string_view text);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue