summaryrefslogtreecommitdiff
path: root/libavcodec/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/bmp.c')
-rw-r--r--libavcodec/bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c
index fa1d6a53f2..d462385ca8 100644
--- a/libavcodec/bmp.c
+++ b/libavcodec/bmp.c
@@ -133,7 +133,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
}
avctx->width = width;
- avctx->height = height > 0 ? height : -height;
+ avctx->height = height > 0 ? height : -(unsigned)height;
avctx->pix_fmt = AV_PIX_FMT_NONE;