- Timestamp:
- Nov 10, 2015 5:28:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c
r4987 r5198 195 195 * may be needed for post-decoding. 196 196 */ 197 enum PixelFormat expected_dec_fmt;197 enum AVPixelFormat expected_dec_fmt; 198 198 /**< Expected output format of 199 199 ffmpeg decoder */ … … 674 674 unsigned raw_fmt_cnt = 0; 675 675 unsigned raw_fmt_cnt_should_be = 0; 676 const enum PixelFormat *p = c->pix_fmts;676 const enum AVPixelFormat *p = c->pix_fmts; 677 677 678 678 for(;(p && *p != -1) && … … 1097 1097 pj_mutex_t *ff_mutex) 1098 1098 { 1099 enum PixelFormat pix_fmt;1099 enum AVPixelFormat pix_fmt; 1100 1100 pjmedia_video_format_detail *vfd; 1101 1101 pj_bool_t enc_opened = PJ_FALSE, dec_opened = PJ_FALSE; … … 1430 1430 PJ_ASSERT_RETURN(ff->enc_ctx, PJ_EINVALIDOP); 1431 1431 1432 avcodec_get_frame_defaults(&avframe); 1432 pj_bzero(&avframe, sizeof(avframe)); 1433 av_frame_unref(&avframe); 1433 1434 1434 1435 // Let ffmpeg manage the timestamps … … 1680 1681 * closed). 1681 1682 */ 1682 avcodec_get_frame_defaults(&avframe); 1683 pj_bzero(&avframe, sizeof(avframe)); 1684 av_frame_unref(&avframe); 1683 1685 1684 1686 /* Init packet, the container of the encoded data */
Note: See TracChangeset
for help on using the changeset viewer.