Module: libav
Branch: release/11
Commit: 205bdf0a8f8f0e89373e68e1b5c880b1f18b4075

Author:    Vittorio Giovara <[email protected]>
Committer: Luca Barbato <[email protected]>
Date:      Sun Jun 28 10:50:42 2015 +0200

aic: Fix slice size computation for widths multiples of 32 macroblocks

CC: [email protected]

---

 libavcodec/aic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aic.c b/libavcodec/aic.c
index 5687dbe..4e30d7e 100644
--- a/libavcodec/aic.c
+++ b/libavcodec/aic.c
@@ -437,7 +437,7 @@ static av_cold int aic_decode_init(AVCodecContext *avctx)
     ctx->num_x_slices = (ctx->mb_width + 15) >> 4;
     ctx->slice_width  = 16;
     for (i = 1; i < 32; i++) {
-        if (!(ctx->mb_width % i) && (ctx->mb_width / i < 32)) {
+        if (!(ctx->mb_width % i) && (ctx->mb_width / i <= 32)) {
             ctx->slice_width  = ctx->mb_width / i;
             ctx->num_x_slices = i;
             break;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to