Ignore:
Timestamp:
Jul 7, 2017 8:40:04 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1994): Rearrange H264 default backend priority to avoid multiple H264 backends. Currently OpenH264 has higher priority than FFmpeg, and VideoToolBox? (for MacOS/iOS) should be manually enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-codec/config.h

    r5304 r5624  
    501501 * Enable FFMPEG H264 codec (requires libx264). 
    502502 * 
    503  * Default: 0 
     503 * Default: disabled when OpenH264 is used, otherwise it is set to 
     504 * PJMEDIA_HAS_FFMPEG_VID_CODEC 
    504505 */ 
    505506#ifndef PJMEDIA_HAS_FFMPEG_CODEC_H264 
    506 #   define PJMEDIA_HAS_FFMPEG_CODEC_H264        PJMEDIA_HAS_FFMPEG_VID_CODEC 
     507#   if defined(PJMEDIA_HAS_OPENH264_CODEC) && PJMEDIA_HAS_OPENH264_CODEC != 0 
     508#       define PJMEDIA_HAS_FFMPEG_CODEC_H264    0 
     509#   else 
     510#       define PJMEDIA_HAS_FFMPEG_CODEC_H264    PJMEDIA_HAS_FFMPEG_VID_CODEC 
     511#   endif 
    507512#endif 
    508513 
Note: See TracChangeset for help on using the changeset viewer.