Changeset 3757 for pjproject


Ignore:
Timestamp:
Sep 20, 2011 10:06:32 AM (13 years ago)
Author:
bennylp
Message:

Misc video (re #1370): ignore return value of sws_scale() as it returned zero on Linux in some conversion, although the resulting picture looks okay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/converter_libswscale.c

    r3664 r3757  
    155155                  dst->apply_param.planes, dst->apply_param.strides); 
    156156 
    157     return h==(int)dst->apply_param.size.h ? PJ_SUCCESS : PJ_EUNKNOWN; 
     157    //sws_scale() return value can't be trusted? There are cases when 
     158    //sws_scale() returns zero but conversion seems to work okay. 
     159    //return h==(int)dst->apply_param.size.h ? PJ_SUCCESS : PJ_EUNKNOWN; 
     160    PJ_UNUSED_ARG(h); 
     161 
     162    return PJ_SUCCESS; 
    158163} 
    159164 
Note: See TracChangeset for help on using the changeset viewer.