You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Update src/FFmpegWriter.cpp
Perfect. I forgot that comment. Co-authored-by: Jonathan Thomas <jonathan@openshot.org>
This commit is contained in:
@@ -478,6 +478,7 @@ void FFmpegWriter::SetOption(StreamType stream, std::string name, std::string va
|
||||
#if (LIBAVCODEC_VERSION_MAJOR >= 58)
|
||||
case AV_CODEC_ID_AV1 :
|
||||
c->bit_rate = 0;
|
||||
// AV1 only supports "crf" quality values
|
||||
av_opt_set_int(c->priv_data, "crf", std::min(std::stoi(value),63), 0);
|
||||
break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user