aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2009-02-15 09:03:47 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2009-02-15 09:03:47 +0000
commitafb9342a3ecb285a0a613f0c7b842f359c7c40a9 (patch)
treeb601b1a24c85d1dda49ffce6f5e18bacda7896a9
parent095edd3e6112078be8cb9e1b866b82707a6fbac8 (diff)
downloadffmpeg-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.c2
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);
}