Skip to content

Commit

Permalink
Change of name of library
Browse files Browse the repository at this point in the history
  • Loading branch information
eisneinechse committed Sep 13, 2020
1 parent 9c35e55 commit 158c594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FFmpegWriter.cpp
Expand Up @@ -539,7 +539,7 @@ void FFmpegWriter::SetOption(StreamType stream, std::string name, std::string va
switch (c->codec_id) {
case AV_CODEC_ID_AV1 :
c->bit_rate = 0;
if (strstr(info.vcodec.c_str(), "svt_av1") != NULL) {
if (strstr(info.vcodec.c_str(), "svtav1") != NULL) {
av_opt_set_int(c->priv_data, "qp", std::min(std::stoi(value),63), 0);
}
else if (strstr(info.vcodec.c_str(), "rav1e") != NULL) {
Expand Down Expand Up @@ -1239,7 +1239,7 @@ AVStream *FFmpegWriter::add_video_stream() {
info.video_bit_rate = calculated_quality;
} // medium
}
if (strstr(info.vcodec.c_str(), "svt_av1") != NULL) {
if (strstr(info.vcodec.c_str(), "svtav1") != NULL) {
av_opt_set_int(c->priv_data, "preset", 6, 0);
av_opt_set_int(c->priv_data, "forced-idr",1,0);
}
Expand Down

0 comments on commit 158c594

Please sign in to comment.