Update src/FFmpegWriter.cpp

Perfect. I forgot that comment.

Co-authored-by: Jonathan Thomas <jonathan@openshot.org>
This commit is contained in:
eisneinechse
2020-06-15 14:03:29 -07:00
committed by GitHub
parent 4e2c08db88
commit 91647e6d0b

View File

@@ -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