Commit 2fc52995 authored by Måns Rullgård's avatar Måns Rullgård

Fix per-frame QP override broken in rev 137.


git-svn-id: svn://svn.videolan.org/x264/trunk@159 df754926-b1dd-0310-bc7b-ec298dee348c
parent 99b10e79
......@@ -1121,6 +1121,9 @@ do_encode:
/* Init the rate control */
x264_ratecontrol_start( h, i_slice_type );
i_global_qp = x264_ratecontrol_qp( h );
if( h->fenc->i_qpplus1 > 0)
i_global_qp = h->fenc->i_qpplus1 - 1;
pic_out->i_qpplus1 =
h->fdec->i_qpplus1 = i_global_qp + 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment