[FFmpeg-cvslog] r24201 - trunk/libavcodec/libvpxenc.c
cehoyos
subversion
Sun Jul 11 19:46:44 CEST 2010
Author: cehoyos
Date: Sun Jul 11 19:46:44 2010
New Revision: 24201
Log:
Set libvpx encoding profile to libavcodec's profile.
Patch by James Zern, jzern google
Modified:
trunk/libavcodec/libvpxenc.c
Modified: trunk/libavcodec/libvpxenc.c
==============================================================================
--- trunk/libavcodec/libvpxenc.c Sun Jul 11 18:57:20 2010 (r24200)
+++ trunk/libavcodec/libvpxenc.c Sun Jul 11 19:46:44 2010 (r24201)
@@ -277,6 +277,11 @@ static av_cold int vp8_init(AVCodecConte
}
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 */
More information about the ffmpeg-cvslog
mailing list