Update libass from MPlayer r29129: Don't automatically wrap lines when WrapStyle==2.

Originally committed to SVN as r2886.
This commit is contained in:
Amar Takhar 2009-04-29 21:06:54 +00:00
parent fad9a58240
commit a9e1f80c8c

View file

@ -1603,7 +1603,7 @@ static void wrap_lines_smart(int max_text_width)
mp_msg(MSGT_ASS, MSGL_DBG2, "forced line break at %d\n", break_at); mp_msg(MSGT_ASS, MSGL_DBG2, "forced line break at %d\n", break_at);
} }
if (len >= max_text_width) { if ((len >= max_text_width) && (frame_context.track->WrapStyle != 2)) {
break_type = 1; break_type = 1;
break_at = last_space; break_at = last_space;
if (break_at == -1) if (break_at == -1)