all repos — mgba @ f4f6ff902ca4d5d5b5b8ec092ef4317aaa6de9b9

mGBA Game Boy Advance Emulator

Qt: fix bitrates for video
Jeffrey Pfau jeffrey@endrift.com
Mon, 27 Oct 2014 23:38:40 -0700
commit

f4f6ff902ca4d5d5b5b8ec092ef4317aaa6de9b9

parent

e9333c8749e36819a7b6ba55284475a0de355f30

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/VideoView.cppsrc/platform/qt/VideoView.cpp

@@ -49,6 +49,8 @@ FFmpegEncoderInit(&m_encoder);

setAudioCodec(m_ui.audio->currentText()); setVideoCodec(m_ui.video->currentText()); + setAudioBitrate(m_ui.abr->value()); + setVideoBitrate(m_ui.vbr->value()); setContainer(m_ui.container->currentText()); }

@@ -133,13 +135,13 @@ validateSettings();

} void VideoView::setAudioBitrate(int br) { - m_abr = br; + m_abr = br * 1000; FFmpegEncoderSetAudio(&m_encoder, m_audioCodecCstr, m_abr); validateSettings(); } void VideoView::setVideoBitrate(int br) { - m_abr = br; + m_abr = br * 1000; FFmpegEncoderSetVideo(&m_encoder, m_videoCodecCstr, m_vbr); validateSettings(); }