Commit 30829c0c authored by Anton Mitrofanov's avatar Anton Mitrofanov Committed by Fiona Glaser

Fix overread/possible crash with intra refresh + VBV

parent 26c83034
......@@ -2899,7 +2899,10 @@ int x264_encoder_encode( x264_t *h,
h->fdec->i_pir_end_col = h->fdec->f_pir_position+0.5;
/* If our intra refresh has reached the right side of the frame, we're done. */
if( h->fdec->i_pir_end_col >= h->mb.i_mb_width - 1 )
{
h->fdec->f_pir_position = h->mb.i_mb_width;
h->fdec->i_pir_end_col = h->mb.i_mb_width - 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