Changeset 3502 for pjproject


Ignore:
Timestamp:
Apr 7, 2011 5:12:35 AM (14 years ago)
Author:
bennylp
Message:

Re #1219: compile error with undeclared FF_PROFILE_H264_BASELINE and FF_PROFILE_H264_MAIN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3501 r3502  
    217217}; 
    218218 
     219 
     220/* H264 constants */ 
     221#define PROFILE_H264_BASELINE           66 
     222#define PROFILE_H264_MAIN               77 
    219223 
    220224/* Codec specific functions */ 
     
    318322         */ 
    319323        ctx->profile  = data->fmtp.profile_idc; 
    320         if (ctx->profile == FF_PROFILE_H264_BASELINE) { 
     324        if (ctx->profile == PROFILE_H264_BASELINE) { 
    321325            /* Baseline profile settings (the most used profile in 
    322326             * conversational/real-time communications). 
     
    326330            ctx->flags2 &= ~(CODEC_FLAG2_WPRED | CODEC_FLAG2_8X8DCT); 
    327331            ctx->weighted_p_pred = 0; 
    328         } else if (ctx->profile == FF_PROFILE_H264_MAIN) { 
     332        } else if (ctx->profile == PROFILE_H264_MAIN) { 
    329333            ctx->flags2 &= ~CODEC_FLAG2_8X8DCT; 
    330334        } 
Note: See TracChangeset for help on using the changeset viewer.