summaryrefslogtreecommitdiff
path: root/src/spu_dec
diff options
context:
space:
mode:
Diffstat (limited to 'src/spu_dec')
-rw-r--r--src/spu_dec/sputext_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spu_dec/sputext_decoder.c b/src/spu_dec/sputext_decoder.c
index 749b23208..ae16cde37 100644
--- a/src/spu_dec/sputext_decoder.c
+++ b/src/spu_dec/sputext_decoder.c
@@ -552,7 +552,7 @@ static int is_cjk_encoding(const char *enc) {
static void draw_subtitle(sputext_decoder_t *this, int64_t sub_start, int64_t sub_end ) {
int y;
- int sub_x, sub_y, max_width;
+ int sub_x, sub_y, max_width = this->width;
int alignment;
_x_assert(this->renderer != NULL);