- Timestamp:
- Oct 21, 2011 1:36:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3824 r3833 349 349 350 350 if (ff->param.dir & PJMEDIA_DIR_ENCODING) { 351 pjmedia_video_format_detail *vfd; 351 352 AVCodecContext *ctx = ff->enc_ctx; 352 353 const char *profile = NULL; 354 355 vfd = pjmedia_format_get_video_format_detail(&ff->param.enc_fmt, 356 PJ_TRUE); 357 358 /* Override generic params after applying SDP fmtp */ 359 ctx->width = vfd->size.w; 360 ctx->height = vfd->size.h; 361 ctx->time_base.num = vfd->fps.denum; 362 ctx->time_base.den = vfd->fps.num; 353 363 354 364 /* Apply profile. */ … … 474 484 if (!ff->param.ignore_fmtp) { 475 485 status = pjmedia_vid_codec_h263_apply_fmtp(&ff->param); 486 } 487 488 /* Override generic params after applying SDP fmtp */ 489 if (ff->param.dir & PJMEDIA_DIR_ENCODING) { 490 pjmedia_video_format_detail *vfd; 491 AVCodecContext *ctx = ff->enc_ctx; 492 493 vfd = pjmedia_format_get_video_format_detail(&ff->param.enc_fmt, 494 PJ_TRUE); 495 496 /* Override generic params after applying SDP fmtp */ 497 ctx->width = vfd->size.w; 498 ctx->height = vfd->size.h; 499 ctx->time_base.num = vfd->fps.denum; 500 ctx->time_base.den = vfd->fps.num; 476 501 } 477 502 … … 1085 1110 } 1086 1111 1087 /* Init codec override generic params or apply specific params before1088 * the codec opened.1112 /* Override generic params or apply specific params before opening 1113 * the codec. 1089 1114 */ 1090 1115 if (ff->desc->preopen) {
Note: See TracChangeset
for help on using the changeset viewer.