- Timestamp:
- Apr 12, 2011 6:24:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3522 r3526 261 261 {{"QCIF",4}, {"1",1}}, } }, 262 262 }, 263 /*264 263 { 265 264 {PJMEDIA_FORMAT_H263, PJMEDIA_RTP_PT_H263, {"H263",4}}, … … 269 268 {{"QCIF",4}, {"1",1}}, } }, 270 269 }, 271 */272 270 { 273 271 {PJMEDIA_FORMAT_H263, PJMEDIA_RTP_PT_H263, {"H263",4}}, … … 313 311 /* Create packetizer */ 314 312 pktz_cfg.mtu = ff->param.enc_mtu; 313 #if 0 315 314 if (data->fmtp.packetization_mode == 0) 316 315 pktz_cfg.mode = PJMEDIA_H264_PACKETIZER_MODE_SINGLE_NAL; … … 319 318 else 320 319 return PJ_ENOTSUP; 320 #else 321 if (data->fmtp.packetization_mode!= 322 PJMEDIA_H264_PACKETIZER_MODE_SINGLE_NAL && 323 data->fmtp.packetization_mode!= 324 PJMEDIA_H264_PACKETIZER_MODE_NON_INTERLEAVED) 325 { 326 return PJ_ENOTSUP; 327 } 328 /* Better always send in single NAL mode for better compatibility */ 329 pktz_cfg.mode = PJMEDIA_H264_PACKETIZER_MODE_SINGLE_NAL; 330 #endif 321 331 322 332 status = pjmedia_h264_packetizer_create(ff->pool, &pktz_cfg, &data->pktz); 333 if (status != PJ_SUCCESS) 334 return status; 335 336 /* Apply SDP fmtp to format in codec param */ 337 status = pjmedia_vid_codec_h264_apply_fmtp(&ff->param); 323 338 if (status != PJ_SUCCESS) 324 339 return status; … … 354 369 355 370 /* Apply profile level. */ 356 PJ_TODO(apply_h264_profile_level_in_pjmedia_vid_codec_param);357 371 ctx->level = data->fmtp.level; 358 372 … … 1246 1260 int out_buf_len = output_buf_len; 1247 1261 int err; 1248 AVRational src_timebase;1262 //AVRational src_timebase; 1249 1263 /* For some reasons (e.g: SSE/MMX usage), the avcodec_encode_video() must 1250 1264 * have stack aligned to 16 bytes. Let's try to be safe by preparing the
Note: See TracChangeset
for help on using the changeset viewer.