We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b54c4b commit 577236aCopy full SHA for 577236a
src/modules/ffmpeg/producer/av_producer.cpp
@@ -152,7 +152,8 @@ struct Filter
152
153
filter_spec += (boost::format(",bwdif=mode=send_field:parity=auto:deint=all")).str();
154
155
- filter_spec += (boost::format(",fps=fps=%d/%d:start_time=%f") % format_desc.framerate.numerator() %
+ // NOTE: trunc is for width % 4 == 0 or OpenGL will complain during texture uploads.
156
+ filter_spec += (boost::format(",fps=fps=%d/%d:start_time=%f,scale=trunc(iw/4)*4:ih") % format_desc.framerate.numerator() %
157
format_desc.framerate.denominator() % (static_cast<double>(start_time) / AV_TIME_BASE))
158
.str();
159
} else if (media_type == AVMEDIA_TYPE_AUDIO) {
0 commit comments