Changeset 29

Show
Ignore:
Timestamp:
01/26/08 00:40:52 (8 months ago)
Author:
sip
Message:

Size check

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • media/src/framescaler.cpp

    r6 r29  
    1616int FrameScaler::SetResize(int srcWidth,int srcHeight,int srcLineWidth,int dstWidth,int dstHeight,int dstLineWidth) 
    1717{ 
     18        // Check Size 
     19        if (!srcWidth || !srcHeight || !srcLineWidth || !dstWidth || !dstHeight || !dstLineWidth) 
     20                return 0; 
     21 
    1822        // Check if we already have a scaler for this 
    1923        if (resizeCtx && (resizeWidth==srcWidth) && (srcHeight==resizeHeight) && (dstWidth==resizeDstWidth) && (dstHeight==resizeDstHeight)) 
     
    5357        BYTE* dst[3]; 
    5458 
     59        // Check  
     60        if (!resizeCtx) 
     61                //Error 
     62                return 0; 
     63 
    5564        // Set input picture data  
    5665        int numPixels = resizeWidth*resizeHeight; 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software