Changeset 5286


Ignore:
Timestamp:
May 10, 2016 7:56:16 AM (3 years ago)
Author:
nanang
Message:

Re #1897: Updated ffmpeg_vid_codecs.c to support older ffmpeg.

File:
1 edited

Legend:

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

    r5198 r5286  
    14301430    PJ_ASSERT_RETURN(ff->enc_ctx, PJ_EINVALIDOP); 
    14311431 
     1432#ifdef PJMEDIA_USE_OLD_FFMPEG 
     1433    avcodec_get_frame_defaults(&avframe); 
     1434#else 
    14321435    pj_bzero(&avframe, sizeof(avframe)); 
    14331436    av_frame_unref(&avframe); 
     1437#endif 
    14341438 
    14351439    // Let ffmpeg manage the timestamps 
     
    16811685     * closed). 
    16821686     */ 
     1687#ifdef PJMEDIA_USE_OLD_FFMPEG 
     1688    avcodec_get_frame_defaults(&avframe); 
     1689#else 
    16831690    pj_bzero(&avframe, sizeof(avframe)); 
    16841691    av_frame_unref(&avframe); 
     1692#endif 
    16851693 
    16861694    /* Init packet, the container of the encoded data */ 
Note: See TracChangeset for help on using the changeset viewer.