Changeset 3904


Ignore:
Timestamp:
Dec 8, 2011 10:27:38 AM (8 years ago)
Author:
nanang
Message:

Re #1234: minor update, put libavcodec version check for constant AV_PICTURE_TYPE_I/FF_I_TYPE usage.

File:
1 edited

Legend:

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

    r3901 r3904  
    14041404 
    14051405    /* Force keyframe */ 
    1406     if (opt && opt->force_keyframe) 
     1406    if (opt && opt->force_keyframe) { 
     1407#if LIBAVCODEC_VER_AT_LEAST(53,20) 
    14071408        avframe.pict_type = AV_PICTURE_TYPE_I; 
     1409#else 
     1410        avframe.pict_type = FF_I_TYPE; 
     1411#endif 
     1412    } 
    14081413 
    14091414    err = avcodec_encode_video(ff->enc_ctx, out_buf, out_buf_len, &avframe); 
Note: See TracChangeset for help on using the changeset viewer.