changeset 8915:9dd34068523e libavcodec

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.
author iive
date Sun, 15 Feb 2009 09:03:47 +0000
parents 20da0a97b95f
children bd643af669df
files mpegvideo_xvmc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_xvmc.c	Sun Feb 15 08:42:11 2009 +0000
+++ b/mpegvideo_xvmc.c	Sun Feb 15 09:03:47 2009 +0000
@@ -297,6 +297,6 @@
      * 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);
 }