changeset 5781:62e9e0c0bd6a

hq mode in first pass should work (as bad, ehh as well as LQ) apllied small part of patch by Rmi Guyomarch <rguyom@pobox.com>
author michael
date Mon, 22 Apr 2002 02:00:23 +0000
parents aae45ee17fc3
children 31d67bcc713a
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Sun Apr 21 23:13:52 2002 +0000
+++ b/libmpcodecs/ve_lavc.c	Mon Apr 22 02:00:23 2002 +0000
@@ -142,6 +142,12 @@
     else
 	lavc_venc_context.flags = 0;
 
+     /* 4mv is currently buggy with B frames */
+    if (lavc_param_vmax_b_frames > 0 && lavc_param_v4mv) {
+        printf("4MV with B-Frames not yet supported -> 4MV disabled\n");
+        lavc_param_v4mv = 0;
+    }
+
     lavc_venc_context.flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;
 
     /* lavc internal 2pass bitrate control */
@@ -170,8 +176,7 @@
 	if (VbrControl_init_2pass_vbr_analysis(passtmpfile, 5) == -1){
 	    mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile);
 	    pass=0;
-	} else
-	    lavc_venc_context.flags &= ~CODEC_FLAG_HQ;
+	}
 	break;
     case 2:
         if (VbrControl_init_2pass_vbr_encoding(passtmpfile,