mirror of https://github.com/mgba-emu/mgba.git
Qt: fix bitrates for video
This commit is contained in:
parent
e9333c8749
commit
f4f6ff902c
|
@ -49,6 +49,8 @@ VideoView::VideoView(QWidget* parent)
|
||||||
|
|
||||||
setAudioCodec(m_ui.audio->currentText());
|
setAudioCodec(m_ui.audio->currentText());
|
||||||
setVideoCodec(m_ui.video->currentText());
|
setVideoCodec(m_ui.video->currentText());
|
||||||
|
setAudioBitrate(m_ui.abr->value());
|
||||||
|
setVideoBitrate(m_ui.vbr->value());
|
||||||
setContainer(m_ui.container->currentText());
|
setContainer(m_ui.container->currentText());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,13 +135,13 @@ void VideoView::setContainer(const QString& container) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoView::setAudioBitrate(int br) {
|
void VideoView::setAudioBitrate(int br) {
|
||||||
m_abr = br;
|
m_abr = br * 1000;
|
||||||
FFmpegEncoderSetAudio(&m_encoder, m_audioCodecCstr, m_abr);
|
FFmpegEncoderSetAudio(&m_encoder, m_audioCodecCstr, m_abr);
|
||||||
validateSettings();
|
validateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoView::setVideoBitrate(int br) {
|
void VideoView::setVideoBitrate(int br) {
|
||||||
m_abr = br;
|
m_abr = br * 1000;
|
||||||
FFmpegEncoderSetVideo(&m_encoder, m_videoCodecCstr, m_vbr);
|
FFmpegEncoderSetVideo(&m_encoder, m_videoCodecCstr, m_vbr);
|
||||||
validateSettings();
|
validateSettings();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue