Changeset 88e31f14f1b5bc41d1f2be07e4623b52623b746a

Show
Ignore:
Timestamp:
07/20/07 14:46:02 (1 year ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1184935562 +0000
git-parent:

[4a1b6b00bae98767ddf5ae84c571859cb51be630]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1184935562 +0000
Message:

Don't scale when original widht/height is zero.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/video_output/vout_subpictures.c

    r4d4eb33 r88e31f1  
    568568        if( p_spu->p_text ) 
    569569        { 
    570             if( p_subpic->i_original_picture_height > 0 && 
    571                 p_subpic->i_original_picture_width  > 0
     570            if( (p_subpic->i_original_picture_height > 0) && 
     571                (p_subpic->i_original_picture_width  > 0)
    572572            { 
    573573                p_spu->p_text->fmt_out.video.i_width = 
     
    592592        i_scale_height = i_scale_height_orig; 
    593593 
    594         if( p_subpic->i_original_picture_height > 0 && 
    595             p_subpic->i_original_picture_width  > 0
     594        if( (p_subpic->i_original_picture_height > 0) && 
     595            (p_subpic->i_original_picture_width  > 0)
    596596        { 
    597597            i_scale_width = i_scale_width * p_fmt->i_width / 
     
    632632 
    633633        /* Load the scaling module */ 
    634         if( !p_spu->p_scale && (i_scale_width != 1000 || 
    635             i_scale_height != 1000) ) 
     634        if( !p_spu->p_scale && 
     635            ((i_scale_width > 0) || (i_scale_height > 0)) && 
     636            ((i_scale_width != 1000) || (i_scale_height != 1000)) ) 
    636637        { 
    637638            p_spu->p_scale = vlc_object_create( p_spu, VLC_OBJECT_FILTER ); 
     
    735736            } 
    736737 
    737             if( (i_scale_width != 1000 || i_scale_height != 1000) && 
     738            if( ((i_scale_width != 1000) || (i_scale_height != 1000)) && 
     739                ((i_scale_width > 0) || (i_scale_height > 0)) && 
    738740                p_spu->p_scale && !p_region->p_cache ) 
    739741            { 
     
    777779                } 
    778780            } 
    779             if( (i_scale_width != 1000 || i_scale_height != 1000) && 
     781            if( ((i_scale_width != 1000) || (i_scale_height != 1000)) && 
     782                ((i_scale_width > 0) || (i_scale_height > 0)) && 
    780783                p_spu->p_scale && p_region->p_cache ) 
    781784            {