diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-15 09:03:47 +0000 |
---|---|---|
committer | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-15 09:03:47 +0000 |
commit | afb9342a3ecb285a0a613f0c7b842f359c7c40a9 (patch) | |
tree | b601b1a24c85d1dda49ffce6f5e18bacda7896a9 | |
parent | 095edd3e6112078be8cb9e1b866b82707a6fbac8 (diff) | |
download | ffmpeg-afb9342a3ecb285a0a613f0c7b842f359c7c40a9.tar.gz |
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
-rw-r--r-- | libavcodec/mpegvideo_xvmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c index edef2bcfd7..9d89b9ac31 100644 --- a/libavcodec/mpegvideo_xvmc.c +++ b/libavcodec/mpegvideo_xvmc.c @@ -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); } |