diff options
author | James Zern <git@videolan.org> | 2011-04-12 04:40:47 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-05-28 12:15:59 +0200 |
commit | 88aa21593932fbf5597996041ab669848c542ee5 (patch) | |
tree | beff5d8934d912a11dea92b22561c6f2f3c64f75 /libavcodec | |
parent | 945dda41a2085b3c8fb5cf99026c224aa3d2cbfa (diff) | |
download | ffmpeg-88aa21593932fbf5597996041ab669848c542ee5.tar.gz |
vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping
via the equivalent AVCodecContext::mb_threshold
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libvpxenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 79009b1ad5..02f8135381 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -311,6 +311,7 @@ static av_cold int vp8_init(AVCodecContext *avctx) codecctl_int(avctx, VP8E_SET_CPUUSED, cpuused); codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, avctx->noise_reduction); codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices)); + codecctl_int(avctx, VP8E_SET_STATIC_THRESHOLD, avctx->mb_threshold); //provide dummy value to initialize wrapper, values will be updated each _encode() vpx_img_wrap(&ctx->rawimg, VPX_IMG_FMT_I420, avctx->width, avctx->height, 1, |