[x264-devel] Disable i8x8 in lossless
Fiona Glaser
git at videolan.org
Sun Jul 20 11:58:29 CEST 2014
x264 | branch: master | Fiona Glaser <fiona at x264.com> | Sat Jul 19 20:34:22 2014 -0700| [af8e768e2bd3b4398bca033998f83b0eb8874914] | committer: Fiona Glaser
Disable i8x8 in lossless
x264's implementation was slightly incorrect due to a vague spec, so some
decoders decoded video incorrectly.
Minimal impact on compression.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=af8e768e2bd3b4398bca033998f83b0eb8874914
---
encoder/encoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index 416bf0c..bd26a9f 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -818,6 +818,8 @@ static int x264_validate_parameters( x264_t *h, int b_open )
/* 8x8dct is not useful without RD in CAVLC lossless */
if( !h->param.b_cabac && h->param.analyse.i_subpel_refine < 6 )
h->param.analyse.b_transform_8x8 = 0;
+ h->param.analyse.inter &= ~X264_ANALYSE_I8x8;
+ h->param.analyse.intra &= ~X264_ANALYSE_I8x8;
}
if( h->param.rc.i_rc_method == X264_RC_CQP )
{
More information about the x264-devel
mailing list