]> git.videolan.org Git - x264.git/commitdiff
Fix deblocking + threads + AQ bug
authorJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 22 Sep 2008 05:17:34 +0000 (22:17 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 22 Sep 2008 05:17:34 +0000 (22:17 -0700)
At low QPs, with threads and deblocking on, deblocking could be improperly disabled.
Revision in which this bug was introduced is unknown; it may be as old as b_variable_qp in x264 itself.

encoder/ratecontrol.c

index 103e73bd66b56c59508e7a2b04510e580dec73aa..4f2604d0de4ee67d8167af7dabc68dca50fab54c 100644 (file)
@@ -545,6 +545,7 @@ int x264_ratecontrol_new( x264_t *h )
         {
             rc[i] = rc[0];
             memcpy( &h->thread[i]->param, &h->param, sizeof( x264_param_t ) );
+            h->thread[i]->mb.b_variable_qp = h->mb.b_variable_qp;
         }
     }