Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
RealChuan committed Jun 6, 2024
1 parent 3bbfc44 commit d880d0d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ runs:
ffmpeg[${{ inputs.vcpkg_ffmpeg_features }}] --triplet arm64-osx \
|| (cat /usr/local/share/vcpkg/installed/vcpkg/issue_body.md && exit 1)
ls -al /opt/homebrew/include
ls -al /opt/homebrew/include | grep mpv
- name: Install dependencies on linux
if: startsWith(runner.os, 'Linux')
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion examples/examples.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TEMPLATE = subdirs
CONFIG += ordered
CONFIG += ordered BUILD_MPV

SUBDIRS += \
ffmpegplayer \
Expand Down
2 changes: 1 addition & 1 deletion src/ffmpeg/codeccontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class CodecContext::CodecContextPrivate
codecCtx->global_quality = encodeContext.crf * FF_QP2LAMBDA;
codecCtx->flags |= AV_CODEC_FLAG_QSCALE;
if (encodeContext.codecInfo().name.contains("fdk")) {
auto vbr = QString::asprintf("%.1g", encodeContext.crf);
auto vbr = QString::asprintf("%.1d", encodeContext.crf);
av_dict_set(&encodeOptions, "vbr", vbr.toUtf8().data(), 0);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/mpv/mpv.pri
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ win32 {
}

macx {
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/lib -L/usr/local/lib
INCLUDEPATH += /opt/homebrew/include
LIBS += -L/opt/homebrew/lib
LIBS += -lmpv
}

Expand Down
2 changes: 1 addition & 1 deletion src/mpv/qthelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ struct node_builder
// "QVariant::Type(obsolete), the return value should be interpreted
// as QMetaType::Type."
// So a cast really seems to be needed to avoid warnings (urgh).
return static_cast<int>(v.type()) == static_cast<int>(t);
return v.typeId() == static_cast<int>(t);
}
void set(mpv_node *dst, const QVariant &src)
{
Expand Down
4 changes: 3 additions & 1 deletion src/src.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TEMPLATE = subdirs
CONFIG += ordered
CONFIG += ordered BUILD_MPV

SUBDIRS += \
utils \
Expand All @@ -10,3 +10,5 @@ SUBDIRS += \
contains(CONFIG, BUILD_MPV) {
SUBDIRS += mpv
}

message($$CONFIG)

0 comments on commit d880d0d

Please sign in to comment.