Skip to content

Commit

Permalink
fix: specify ass_set_storage_size
Browse files Browse the repository at this point in the history
According to [1], `ass_set_storage_size` must be called to render transforms correctly.

References:
[1] libass/libass#591

Cherry-picked from: ThaUnknown/jassub@0c258cf
  • Loading branch information
ThaUnknown authored and dmitrylyzo committed Sep 20, 2024
1 parent 1b6693c commit 19942b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SubtitleOctopus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ class SubtitleOctopus {
/* CANVAS */
void resizeCanvas(int frame_w, int frame_h) {
ass_set_frame_size(ass_renderer, frame_w, frame_h);
ass_set_storage_size(ass_renderer, frame_w, frame_h);
canvas_h = frame_h;
canvas_w = frame_w;
}
Expand Down

0 comments on commit 19942b5

Please sign in to comment.