- Timestamp:
- May 10, 2016 7:56:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c
r5198 r5286 1430 1430 PJ_ASSERT_RETURN(ff->enc_ctx, PJ_EINVALIDOP); 1431 1431 1432 #ifdef PJMEDIA_USE_OLD_FFMPEG 1433 avcodec_get_frame_defaults(&avframe); 1434 #else 1432 1435 pj_bzero(&avframe, sizeof(avframe)); 1433 1436 av_frame_unref(&avframe); 1437 #endif 1434 1438 1435 1439 // Let ffmpeg manage the timestamps … … 1681 1685 * closed). 1682 1686 */ 1687 #ifdef PJMEDIA_USE_OLD_FFMPEG 1688 avcodec_get_frame_defaults(&avframe); 1689 #else 1683 1690 pj_bzero(&avframe, sizeof(avframe)); 1684 1691 av_frame_unref(&avframe); 1692 #endif 1685 1693 1686 1694 /* Init packet, the container of the encoded data */
Note: See TracChangeset
for help on using the changeset viewer.