Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/dev' into mod
Browse files Browse the repository at this point in the history
  • Loading branch information
AkarinVS committed May 5, 2022
2 parents 55443ec + 5b0d015 commit b1876e5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gha-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
#brew upgrade autoconf freetype gettext icu4c
brew analytics off # https://github.com/Homebrew/brew/issues/142 https://github.com/Homebrew/brew/pull/6745
brew install automake boost ffmpeg ffms2 fftw fribidi libass \
lua luarocks m4 wxmac hunspell uchardet
lua luarocks m4 wxwidgets hunspell uchardet
# Use bundled googletest
git submodule --quiet init
git submodule --quiet update vendor/googletest
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ target_include_directories(luajit PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/vendor/lu
if(WIN32)
target_sources(luajit PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/vendor/luajit/src/lj_vm.obj")
else()
enable_language(ASM-ATT)
target_sources(luajit PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/vendor/luajit/src/lj_vm.s")
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/vendor/luajit/src/lj_vm.s" PROPERTY LANGUAGE C)
target_link_libraries(luajit ${CMAKE_DL_LIBS})
endif()
if(APPLE)
Expand Down
2 changes: 1 addition & 1 deletion src/libresrc/default_config_win.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
}
},
"Subtitle" : {
"Provider" : "CSRI/xy-vsfilter_aegisub"
"Provider" : "CSRI/vsfilter_textsub"
}
}
2 changes: 2 additions & 0 deletions src/subtitles_provider_libass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ LibassSubtitlesProvider::~LibassSubtitlesProvider() {

void LibassSubtitlesProvider::DrawSubtitles(VideoFrame &frame,double time) {
ass_set_frame_size(renderer(), frame.width, frame.height);
// Note: this relies on Aegisub always rendering at video storage res
ass_set_storage_size(renderer(), frame.width, frame.height);

ASS_Image* img = ass_render_frame(renderer(), ass_track, int(time * 1000), nullptr);

Expand Down
2 changes: 2 additions & 0 deletions vendor/csri/backends/libass/libass_csri.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ int csri_request_fmt(csri_inst *inst, const struct csri_fmt *fmt)
if (!csri_is_rgb(fmt->pixfmt) || csri_has_alpha(fmt->pixfmt))
return -1;
ass_set_frame_size(inst->ass_renderer, fmt->width, fmt->height);
// Note: this relies on CSRI always rendering at video storage res
ass_set_storage_size(inst->ass_renderer, fmt->width, fmt->height);
return 0;
}

Expand Down

0 comments on commit b1876e5

Please sign in to comment.