Ignore:
Timestamp:
Oct 6, 2011 6:37:46 AM (13 years ago)
Author:
nanang
Message:

Close #1381:

  • Added 'ignore_fmtp' field in pjmedia_vid_codec_param to allow application to omit SDP fmtp in codec param without risking video size and frame rate param being overridden with default values.
  • Updated sample app vid_streamutil.c to use that field, which currently not supplying SDP fmtp to video codec.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3776 r3795  
    342342 
    343343    /* Apply SDP fmtp to format in codec param */ 
    344     status = pjmedia_vid_codec_h264_apply_fmtp(&ff->param); 
    345     if (status != PJ_SUCCESS) 
    346         return status; 
     344    if (!ff->param.ignore_fmtp) { 
     345        status = pjmedia_vid_codec_h264_apply_fmtp(&ff->param); 
     346        if (status != PJ_SUCCESS) 
     347            return status; 
     348    } 
    347349 
    348350    if (ff->param.dir & PJMEDIA_DIR_ENCODING) { 
     
    449451 
    450452    /* Apply fmtp settings to codec param */ 
    451     status = pjmedia_vid_codec_h263_apply_fmtp(&ff->param); 
     453    if (!ff->param.ignore_fmtp) { 
     454        status = pjmedia_vid_codec_h263_apply_fmtp(&ff->param); 
     455    } 
    452456 
    453457    return status; 
Note: See TracChangeset for help on using the changeset viewer.