# HG changeset patch # User cehoyos # Date 1278870404 0 # Node ID 3d186eff2224bcd5bdbb0fd62f2e3933cab099c5 # Parent e59926e2c50c101d58eec82873fbf618744c8a01 Set libvpx encoding profile to libavcodec's profile. Patch by James Zern, jzern google diff -r e59926e2c50c -r 3d186eff2224 libvpxenc.c --- a/libvpxenc.c Sun Jul 11 16:56:20 2010 +0000 +++ b/libvpxenc.c Sun Jul 11 17:46:44 2010 +0000 @@ -277,6 +277,11 @@ } ctx->deadline = VPX_DL_GOOD_QUALITY; + /* 0-3: For non-zero values the encoder increasingly optimizes for reduced + complexity playback on low powered devices at the expense of encode + quality. */ + if (avctx->profile != FF_PROFILE_UNKNOWN) + enccfg.g_profile = avctx->profile; dump_enc_cfg(avctx, &enccfg); /* Construct Encoder Context */