diff --git a/libavcodec/h263.c b/libavcodec/h263.c index c1ae6b64d5..df05cbac45 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -553,7 +553,7 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s){ #endif //CONFIG_ENCODERS -#define tab_size (sizeof(s->direct_scale_mv[0])/sizeof(int16_t)) +#define tab_size ((signed)(sizeof(s->direct_scale_mv[0])/sizeof(int16_t))) #define tab_bias (tab_size/2) static void ff_mpeg4_init_direct_mv(MpegEncContext *s){