Changeset 3795 for pjproject/trunk
- Timestamp:
- Oct 6, 2011 6:37:46 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/vid_codec.h
r3776 r3795 127 127 pjmedia_codec_fmtp dec_fmtp; /**< Decoder fmtp params */ 128 128 129 pj_bool_t ignore_fmtp; /**< Ignore fmtp params. If set to 130 PJ_TRUE, the codec will apply 131 format settings specified in 132 enc_fmt and dec_fmt only. */ 133 129 134 } pjmedia_vid_codec_param; 130 135 -
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3776 r3795 342 342 343 343 /* 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 } 347 349 348 350 if (ff->param.dir & PJMEDIA_DIR_ENCODING) { … … 449 451 450 452 /* 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 } 452 456 453 457 return status; -
pjproject/trunk/pjsip-apps/src/samples/vid_streamutil.c
r3776 r3795 709 709 status = pjmedia_vid_dev_default_param( 710 710 pool, 711 0,//PJMEDIA_VID_DEFAULT_CAPTURE_DEV,711 PJMEDIA_VID_DEFAULT_CAPTURE_DEV, 712 712 &vpp.vidparam); 713 713 if (status != PJ_SUCCESS) … … 727 727 status = pjmedia_vid_dev_default_param( 728 728 pool, 729 1,//PJMEDIA_VID_DEFAULT_RENDER_DEV,729 PJMEDIA_VID_DEFAULT_RENDER_DEV, 730 730 &vpp.vidparam); 731 731 if (status != PJ_SUCCESS) … … 741 741 } 742 742 } 743 744 /* Set to ignore fmtp */ 745 codec_param.ignore_fmtp = PJ_TRUE; 743 746 744 747 /* Create stream based on program arguments */ … … 796 799 status = pjmedia_vid_dev_default_param( 797 800 pool, 798 1,//PJMEDIA_VID_DEFAULT_RENDER_DEV,801 PJMEDIA_VID_DEFAULT_RENDER_DEV, 799 802 &vpp.vidparam); 800 803 if (status != PJ_SUCCESS)
Note: See TracChangeset
for help on using the changeset viewer.