Commit afb9342a authored by Ivan Kalvachev's avatar Ivan Kalvachev

Proper condition in xvmc decode mb.

The old one would try to use mv blocks that are written outside their buffer,
in case of unhandled error.

Originally committed as revision 17315 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 095edd3e
......@@ -297,6 +297,6 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
* blocks. */
if (render->filled_mv_blocks_num >= render->total_number_of_mv_blocks)
if (render->filled_mv_blocks_num == render->total_number_of_mv_blocks)
ff_draw_horiz_band(s, 0, 0);
}
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