From 88aa21593932fbf5597996041ab669848c542ee5 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 12 Apr 2011 04:40:47 +0200 Subject: vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping via the equivalent AVCodecContext::mb_threshold Signed-off-by: Michael Niedermayer --- libavcodec/libvpxenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/libvpxenc.c') 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, -- cgit v1.2.3