- Timestamp:
- Apr 2, 2012 8:40:54 AM (13 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/config.h
r3999 r4006 1160 1160 #endif 1161 1161 1162 1163 /** 1164 * Maximum video payload size. Note that this must not be greater than 1165 * PJMEDIA_MAX_MTU. 1166 * 1167 * Default: (PJMEDIA_MAX_MTU - 100) 1168 */ 1169 #ifndef PJMEDIA_MAX_VID_PAYLOAD_SIZE 1170 # define PJMEDIA_MAX_VID_PAYLOAD_SIZE (PJMEDIA_MAX_MTU - 100) 1171 #endif 1172 1173 1162 1174 /** 1163 1175 * @} -
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3998 r4006 933 933 attr->enc_fmt.det.vid.max_bps = desc->max_bps; 934 934 935 /* MTU */936 attr->enc_mtu = PJMEDIA_MAX_ MTU;935 /* Encoding MTU */ 936 attr->enc_mtu = PJMEDIA_MAX_VID_PAYLOAD_SIZE; 937 937 938 938 return PJ_SUCCESS; … … 1214 1214 1215 1215 pj_memcpy(&ff->param, attr, sizeof(*attr)); 1216 1217 /* Normalize encoding MTU in codec param */ 1218 if (attr->enc_mtu > PJMEDIA_MAX_VID_PAYLOAD_SIZE) 1219 attr->enc_mtu = PJMEDIA_MAX_VID_PAYLOAD_SIZE; 1216 1220 1217 1221 /* Open the codec */ -
pjproject/trunk/pjmedia/src/pjmedia-codec/h263_packetizer.c
r3715 r4006 99 99 } else { 100 100 p_->cfg.mode = PJMEDIA_H263_PACKETIZER_MODE_RFC4629; 101 p_->cfg.mtu = PJMEDIA_MAX_ MTU;101 p_->cfg.mtu = PJMEDIA_MAX_VID_PAYLOAD_SIZE; 102 102 } 103 103 -
pjproject/trunk/pjmedia/src/pjmedia-codec/h264_packetizer.c
r3819 r4006 105 105 } else { 106 106 p_->cfg.mode = PJMEDIA_H264_PACKETIZER_MODE_NON_INTERLEAVED; 107 p_->cfg.mtu = PJMEDIA_MAX_ MTU;107 p_->cfg.mtu = PJMEDIA_MAX_VID_PAYLOAD_SIZE; 108 108 } 109 109
Note: See TracChangeset
for help on using the changeset viewer.