Changeset 5305
- Timestamp:
- May 18, 2016 7:50:15 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c
r5286 r5305 1477 1477 return PJMEDIA_CODEC_EFAILED; 1478 1478 } else { 1479 pj_bool_t has_key_frame = PJ_FALSE; 1479 1480 output->size = err; 1480 1481 output->bit_info = 0; 1481 if (ff->enc_ctx->coded_frame->key_frame) 1482 output->bit_info |= PJMEDIA_VID_FRM_KEYFRAME; 1482 1483 #if LIBAVCODEC_VER_AT_LEAST(54,15) 1484 has_key_frame = (avpacket.flags & AV_PKT_FLAG_KEY); 1485 #else 1486 has_key_frame = ff->enc_ctx->coded_frame->key_frame; 1487 #endif 1488 if (has_key_frame) 1489 output->bit_info |= PJMEDIA_VID_FRM_KEYFRAME; 1483 1490 } 1484 1491
Note: See TracChangeset
for help on using the changeset viewer.