[MPlayer-dev-eng] [PATCH] libass - hard line breaks sometimes ignored
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Sat Apr 7 15:33:26 CEST 2007
On Saturday 07 April 2007 14:22, Jindrich Makovicka wrote:
> Hi,
>
> the current word wrapping code in libass has a problem with the
> situation when the word followed by a hard line
> break overflows. In that case, the wrapper notices that it has to
> insert the soft break before the word, but it forgets about the hard
> break after it. This results in the words originally split by the
> line break to be joined on one line.
>
> The attached patch fixes the issue by repeating the loop when there was
> a soft linebreak inserted and the current symbol is a newline.
>
> The bug can be triggered by the following subtitle and options on a
> 496x384 video.
>
> {1}{15905}bologna indeed were a side|intellectually out-argued
>
> vo=gl:yuv=3:lscale=1:rectangle=1:swapinterval=1:slice-height=0:osdcolor=0xf
>fff60 subcp="enca:cs:cp1250"
> ffactor=1
> fontconfig=1
> font="DejaVu Sans"
> subfont-text-scale=5.5
> subfont-osd-scale=7
> slang=cz
> sub-fuzziness=2
> spuaa=4
> monitoraspect=16:10
> ass=1
> ass-font-scale=1.2
> ass-use-margins=1
> ass-color=ffff6000
>
> Screenshot is available here:
>
> http://kmlinux.fjfi.cvut.cz/~makovick/wrap.png
Applied.
More information about the MPlayer-dev-eng
mailing list