1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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
This commit is contained in:
Ivan Kalvachev 2009-02-15 09:03:47 +00:00
parent 095edd3e61
commit afb9342a3e

View File

@ -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);
}