Ignore:
Timestamp:
Nov 10, 2015 5:28:47 AM (8 years ago)
Author:
riza
Message:

Re #1897: Implement support to Ffmpeg 2.8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c

    r4987 r5198  
    195195     * may be needed for post-decoding. 
    196196     */ 
    197     enum PixelFormat                 expected_dec_fmt; 
     197    enum AVPixelFormat               expected_dec_fmt; 
    198198                                                /**< Expected output format of  
    199199                                                     ffmpeg decoder         */ 
     
    674674            unsigned raw_fmt_cnt = 0; 
    675675            unsigned raw_fmt_cnt_should_be = 0; 
    676             const enum PixelFormat *p = c->pix_fmts; 
     676            const enum AVPixelFormat *p = c->pix_fmts; 
    677677 
    678678            for(;(p && *p != -1) && 
     
    10971097                                     pj_mutex_t *ff_mutex) 
    10981098{ 
    1099     enum PixelFormat pix_fmt; 
     1099    enum AVPixelFormat pix_fmt; 
    11001100    pjmedia_video_format_detail *vfd; 
    11011101    pj_bool_t enc_opened = PJ_FALSE, dec_opened = PJ_FALSE; 
     
    14301430    PJ_ASSERT_RETURN(ff->enc_ctx, PJ_EINVALIDOP); 
    14311431 
    1432     avcodec_get_frame_defaults(&avframe); 
     1432    pj_bzero(&avframe, sizeof(avframe)); 
     1433    av_frame_unref(&avframe); 
    14331434 
    14341435    // Let ffmpeg manage the timestamps 
     
    16801681     * closed). 
    16811682     */ 
    1682     avcodec_get_frame_defaults(&avframe); 
     1683    pj_bzero(&avframe, sizeof(avframe)); 
     1684    av_frame_unref(&avframe); 
    16831685 
    16841686    /* Init packet, the container of the encoded data */ 
Note: See TracChangeset for help on using the changeset viewer.