]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/error_resilience.c
libavcodec/zmbv: change 24-bit decoder channel order, from RGB24 to BGR24
[ffmpeg] / libavcodec / error_resilience.c
index 1abae53f41d41e4d3aa5e19f33570190bec87375..35d0c609e5ab99ec22e4a63e76bf09ec482a1ba8 100644 (file)
@@ -437,7 +437,7 @@ static void guess_mv(ERContext *s)
     }
 
     if ((!(s->avctx->error_concealment&FF_EC_GUESS_MVS)) ||
-        num_avail <= mb_width / 2) {
+        num_avail <= FFMAX(mb_width, mb_height) / 2) {
         for (mb_y = 0; mb_y < mb_height; mb_y++) {
             for (mb_x = 0; mb_x < s->mb_width; mb_x++) {
                 const int mb_xy = mb_x + mb_y * s->mb_stride;