Changeset 3501 for pjproject


Ignore:
Timestamp:
Apr 6, 2011 2:56:03 PM (14 years ago)
Author:
nanang
Message:

Re #1219: Added H.264 SDP fmtp "sprop-parameter-sets" to ffmpeg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3500 r3501  
    352352    } 
    353353 
     354    if (ff->param.dir & PJMEDIA_DIR_DECODING) { 
     355        AVCodecContext *ctx = ff->dec_ctx; 
     356 
     357        /* Apply the "sprop-parameter-sets" fmtp from remote SDP to 
     358         * extradata of ffmpeg codec context. 
     359         */ 
     360        if (data->fmtp.sprop_param_sets_len) { 
     361            ctx->extradata_size = data->fmtp.sprop_param_sets_len; 
     362            ctx->extradata = data->fmtp.sprop_param_sets; 
     363        } 
     364    } 
     365 
    354366    return PJ_SUCCESS; 
    355367} 
     
    359371    h264_data *data = (h264_data*)ff->data; 
    360372    PJ_UNUSED_ARG(data); 
    361  
    362     // Where to apply the "sprop-parameter-sets" fmtp from remote SDP? 
    363     // Through decoder decode() or decoder context extradata? 
    364     PJ_TODO(apply_h264_fmtp_sprop_parameter_sets_from_remote_sdp); 
    365  
    366373    return PJ_SUCCESS; 
    367374} 
Note: See TracChangeset for help on using the changeset viewer.