diff options
author | James Zern <jzern@google.com> | 2010-07-11 17:46:44 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-07-11 17:46:44 +0000 |
commit | 83a68cd64faea2c56a2f26561697636b9d68c662 (patch) | |
tree | 8c0068e88d1f9be3a25890c1b4b44e656679677c /libavcodec | |
parent | 374979792184bf852be54a93fab0a0ee518b5b47 (diff) | |
download | ffmpeg-83a68cd64faea2c56a2f26561697636b9d68c662.tar.gz |
Set libvpx encoding profile to libavcodec's profile.
Patch by James Zern, jzern google
Originally committed as revision 24201 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libvpxenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 2c04866d5c..510bf043a5 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -277,6 +277,11 @@ static av_cold int vp8_init(AVCodecContext *avctx) } 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 */ |