Changeset 181756989468eeecda39c28d194de9afa2205bef

Show
Ignore:
Timestamp:
17/09/08 20:36:56 (3 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1221676616 +0200
git-parent:

[3d5a7badbc85fa8eb1b3ec3e8d3455b6eb71acf3]

git-author:
Laurent Aimar <fenrir@videolan.org> 1221675874 +0200
Message:

Fixed a segfault when trying to render a unbreakable string.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/freetype.c

    rcdc8bcd r1817569  
    17271727        if( line.xMax > (int)p_filter->fmt_out.video.i_visible_width - 20 ) 
    17281728        { 
    1729             while( --i > *pi_start ) 
    1730             { 
     1729            for( ; i >= *pi_start; i-- ) 
    17311730                FT_Done_Glyph( (FT_Glyph)p_line->pp_glyphs[ i ] ); 
    1732             } 
     1731            i = *pi_start; 
    17331732 
    17341733            while( psz_unicode > psz_unicode_start && *psz_unicode != ' ' ) 
     
    17541753                p_result->y = __MAX( p_result->y, __MAX( p_line->i_height, 
    17551754                                                         i_yMax - i_yMin ) ); 
    1756  
    1757                 *pi_start = i; 
    17581755                return VLC_SUCCESS; 
    17591756            }