Ignore:
Timestamp:
Nov 22, 2019 6:18:55 AM (5 years ago)
Author:
ming
Message:

Fixed #2253: Support for VP8 and VP9 video codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r6106 r6110  
    103103#endif 
    104104 
     105#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_VPX_CODEC 
     106    status = pjmedia_codec_vpx_vid_init(NULL, &pjsua_var.cp.factory); 
     107    if (status != PJ_SUCCESS) { 
     108        pjsua_perror(THIS_FILE, "Error initializing VPX library", 
     109                     status); 
     110        goto on_error; 
     111    } 
     112#endif 
     113 
    105114    status = pjmedia_vid_dev_subsys_init(&pjsua_var.cp.factory); 
    106115    if (status != PJ_SUCCESS) { 
     
    165174#if defined(PJMEDIA_HAS_OPENH264_CODEC) && PJMEDIA_HAS_OPENH264_CODEC != 0 
    166175    pjmedia_codec_openh264_vid_deinit(); 
     176#endif 
     177 
     178#if defined(PJMEDIA_HAS_VPX_CODEC) && PJMEDIA_HAS_VPX_CODEC != 0 
     179    pjmedia_codec_vpx_vid_deinit(); 
    167180#endif 
    168181 
Note: See TracChangeset for help on using the changeset viewer.