File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,8 @@ EncodeParameter* AIProcessingPage::CreateEncodeParameter() {
387387
388388 // Set video codec and bitrate
389389 QString videoCodec = videoCodecComboBox->currentText ();
390- encodeParam->set_video_codec_name (videoCodec.toStdString ());
390+ if (videoCodec != " auto" )
391+ encodeParam->set_video_codec_name (videoCodec.toStdString ());
391392
392393 int videoBitrate = videoBitrateWidget->GetBitrate ();
393394 if (videoBitrate > 0 ) {
@@ -396,7 +397,8 @@ EncodeParameter* AIProcessingPage::CreateEncodeParameter() {
396397
397398 // Set audio codec and bitrate
398399 QString audioCodec = audioCodecComboBox->currentText ();
399- encodeParam->set_audio_codec_name (audioCodec.toStdString ());
400+ if (audioCodec != " auto" )
401+ encodeParam->set_audio_codec_name (audioCodec.toStdString ());
400402
401403 int audioBitrate = audioBitrateWidget->GetBitrate ();
402404 if (audioBitrate > 0 ) {
You can’t perform that action at this time.
0 commit comments