From 733b660f44fa4e8982cb83447f1d2cd7e31b4386 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Wed, 9 Dec 2009 00:37:09 +0000 Subject: [PATCH] ensure that all boolean options are {0,1} so they print consistently in the options SEI --- encoder/encoder.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/encoder/encoder.c b/encoder/encoder.c index 5177d35c..15715841 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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 ); -- 2.47.3