changeset 12140:3d186eff2224 libavcodec

Set libvpx encoding profile to libavcodec's profile. Patch by James Zern, jzern google
author cehoyos
date Sun, 11 Jul 2010 17:46:44 +0000
parents e59926e2c50c
children c3682c0606e3
files libvpxenc.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */