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.

Cherry-picked from: ThaUnknown/jassub@0c258cf

References:
[1] libass/libass#591
  • Loading branch information
ThaUnknown authored and dmitrylyzo committed Sep 18, 2024
1 parent ec9f7e9 commit 39975d9
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 39975d9

Please sign in to comment.