]> git.videolan.org Git - x264.git/commitdiff
ensure that all boolean options are {0,1} so they print consistently in the options SEI
authorLoren Merritt <pengvado@akuvian.org>
Wed, 9 Dec 2009 00:37:09 +0000 (00:37 +0000)
committerLoren Merritt <pengvado@akuvian.org>
Wed, 9 Dec 2009 00:37:51 +0000 (00:37 +0000)
encoder/encoder.c

index 5177d35cdfdd47bd7a8e0b6f1a16f678880504fc..1571584176cc773a2d410f59068965ccb6699bad 100644 (file)
@@ -715,11 +715,23 @@ static int x264_validate_parameters( x264_t *h )
     /* ensure the booleans are 0 or 1 so they can be used in math */
 #define BOOLIFY(x) h->param.x = !!h->param.x
     BOOLIFY( b_cabac );
+    BOOLIFY( b_constrained_intra );
     BOOLIFY( b_deblocking_filter );
+    BOOLIFY( b_deterministic );
     BOOLIFY( b_interlaced );
+    BOOLIFY( b_visualize );
+    BOOLIFY( b_aud );
+    BOOLIFY( b_repeat_headers );
+    BOOLIFY( b_annexb );
     BOOLIFY( analyse.b_transform_8x8 );
+    BOOLIFY( analyse.b_weighted_bipred );
     BOOLIFY( analyse.b_chroma_me );
+    BOOLIFY( analyse.b_mixed_references );
     BOOLIFY( analyse.b_fast_pskip );
+    BOOLIFY( analyse.b_dct_decimate );
+    BOOLIFY( analyse.b_psy );
+    BOOLIFY( analyse.b_psnr );
+    BOOLIFY( analyse.b_ssim );
     BOOLIFY( rc.b_stat_write );
     BOOLIFY( rc.b_stat_read );
     BOOLIFY( rc.b_mb_tree );