changeset 34533:cbc1222a1e95

Set UMV flag via AVDictionary.
author reimar
date Sat, 28 Jan 2012 12:24:12 +0000
parents 810d6328caed
children a97a86317704
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Sat Jan 28 12:22:10 2012 +0000
+++ b/libmpcodecs/ve_lavc.c	Sat Jan 28 12:24:12 2012 +0000
@@ -266,7 +266,7 @@
 	{"me_range", &lavc_param_me_range, CONF_TYPE_INT, CONF_RANGE, 0, 16000, NULL},
 #ifdef CODEC_FLAG_AC_PRED
 	{"aic", &lavc_param_aic, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED, NULL},
-	{"umv", &lavc_param_umv, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_UMV, NULL},
+	{"umv", &lavc_param_umv, CONF_TYPE_FLAG, 0, 0, 1, NULL},
 #endif
 #ifdef CODEC_FLAG_H263P_AIV
 	{"aiv", &lavc_param_aiv, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIV, NULL},
@@ -564,7 +564,8 @@
     lavc_venc_context->flags|= lavc_param_bit_exact;
     lavc_venc_context->flags|= lavc_param_aic;
     lavc_venc_context->flags|= lavc_param_aiv;
-    lavc_venc_context->flags|= lavc_param_umv;
+    if (lavc_param_umv)
+        av_dict_set(&opts, "umv", "1", 0);
     lavc_venc_context->flags|= lavc_param_obmc;
     lavc_venc_context->flags|= lavc_param_loop;
     lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;