Qt: Fix lossless video encoding
Vicki Pfau vi@endrift.com
Tue, 18 Sep 2018 13:59:13 -0700
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/platform/qt/VideoView.cpp
→
src/platform/qt/VideoView.cpp
@@ -101,7 +101,7 @@ setPreset({
.container = "MKV", .vcodec = "h.264", .acodec = "FLAC", - .vbr = 0, + .vbr = -1, .abr = 0, .dims = QSize(), });@@ -181,7 +181,7 @@ addPreset(m_ui.presetLossless, {
.container = "MKV", .vcodec = "h.264", .acodec = "FLAC", - .vbr = 0, + .vbr = -1, .abr = 0, .dims = QSize(m_nativeWidth, m_nativeHeight) });@@ -311,7 +311,7 @@ }
} void VideoView::setVideoBitrate(int br, bool manual) { - m_vbr = br * 1000; + m_vbr = br >= 0 ? br * 1000 : 0; FFmpegEncoderSetVideo(&m_encoder, m_videoCodecCstr, m_vbr); validateSettings(); if (manual) {