changeset 13406:2f69854dfbe4

10l: Make turbo mode compatible with 3-pass encoding
author gpoirier
date Mon, 20 Sep 2004 20:07:29 +0000
parents bb1052826a89
children 88f66c6b9637
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Mon Sep 20 18:39:48 2004 +0000
+++ b/libmpcodecs/ve_lavc.c	Mon Sep 20 20:07:29 2004 +0000
@@ -668,7 +668,7 @@
 	    mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile);
             return 0;
 	}
-	if(lavc_param_turbo) {
+	if(lavc_param_turbo && (lavc_param_vpass == 1)) {
 	  /* uses SAD comparison functions instead of other hungrier */
 	  lavc_venc_context->me_pre_cmp = 0;
 	  lavc_venc_context->me_cmp = 0;