OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3749797
)
Set libvpx encoding profile to libavcodec's profile.
author
James Zern
<jzern@google.com>
Sun, 11 Jul 2010 17:46:44 +0000
(17:46 +0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 11 Jul 2010 17:46:44 +0000
(17:46 +0000)
Patch by James Zern, jzern google
Originally committed as revision 24201 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/libvpxenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libvpxenc.c
b/libavcodec/libvpxenc.c
index
2c04866
..
510bf04
100644
(file)
--- 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 */