all repos — mgba @ 1aa256a7ee731a75e3f5e8d7c5d94b7dbe519063

mGBA Game Boy Advance Emulator

Qt: Fix lossless video encoding
Vicki Pfau vi@endrift.com
Tue, 18 Sep 2018 13:59:13 -0700
commit

1aa256a7ee731a75e3f5e8d7c5d94b7dbe519063

parent

751acd16371f670348b121bf5550deb7b810110f

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/platform/qt/VideoView.cppsrc/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) {