Ignore:
Timestamp:
Jun 29, 2016 4:58:16 AM (8 years ago)
Author:
nanang
Message:

Re #1937: Keep libyuv enabled in configure script even when ffmpeg swscale is detected because video orientation feature requires libyuv. However, put ffmpeg swscale priority higher than libyuv in video converter.

File:
1 edited

Legend:

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

    r5306 r5364  
    5353        converter_manager_instance = mgr; 
    5454 
    55 #if defined(PJMEDIA_HAS_LIBYUV) && PJMEDIA_HAS_LIBYUV != 0 
    56     status = pjmedia_libyuv_converter_init(mgr); 
    57     if (status != PJ_SUCCESS) { 
    58         PJ_PERROR(4,(THIS_FILE, status, 
    59                      "Error initializing libyuv converter")); 
    60     } 
    61 #endif 
    62  
    6355#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) && \ 
    6456    defined(PJMEDIA_HAS_LIBSWSCALE) && (PJMEDIA_HAS_LIBSWSCALE != 0) 
     
    6759        PJ_PERROR(4,(THIS_FILE, status, 
    6860                     "Error initializing libswscale converter")); 
     61    } 
     62#endif 
     63 
     64#if defined(PJMEDIA_HAS_LIBYUV) && PJMEDIA_HAS_LIBYUV != 0 
     65    status = pjmedia_libyuv_converter_init(mgr); 
     66    if (status != PJ_SUCCESS) { 
     67        PJ_PERROR(4,(THIS_FILE, status, 
     68                     "Error initializing libyuv converter")); 
    6969    } 
    7070#endif 
Note: See TracChangeset for help on using the changeset viewer.