signedness error caused broken decoding

Originally committed as revision 5277 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
D Richard Felker III 2006-04-09 06:53:40 +00:00
parent c4e2a535b3
commit 7b98bcbd0f
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s){
#endif //CONFIG_ENCODERS #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) #define tab_bias (tab_size/2)
static void ff_mpeg4_init_direct_mv(MpegEncContext *s){ static void ff_mpeg4_init_direct_mv(MpegEncContext *s){