changed latin encoding to utf8 for #176

This commit is contained in:
itsmattkc
2018-12-21 00:17:12 +11:00
parent 9797a3bf4b
commit ef3ff6f0c4
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ bool ExportThread::setupVideo() {
switch (video_compression_type) {
case COMPRESSION_TYPE_CFR:
av_opt_set(vcodec_ctx->priv_data, "crf", QString::number(static_cast<int>(video_bitrate)).toLatin1(), AV_OPT_SEARCH_CHILDREN);
av_opt_set(vcodec_ctx->priv_data, "crf", QString::number(static_cast<int>(video_bitrate)).toUtf8(), AV_OPT_SEARCH_CHILDREN);
break;
}
}
@@ -317,7 +317,7 @@ void ExportThread::run() {
}
// copy filename
QByteArray ba = filename.toLatin1();
QByteArray ba = filename.toUtf8();
c_filename = new char[ba.size()+1];
strcpy(c_filename, ba.data());