Mercurial > libavcodec.hg
comparison h263.c @ 8042:e70975d5ff80 libavcodec
uses FF_ARRAY_ELEMS() where appropriate
author | aurel |
---|---|
date | Tue, 21 Oct 2008 21:40:24 +0000 |
parents | 8195c970d077 |
children | 2f5101a67500 |
comparison
equal
deleted
inserted
replaced
8041:24761747ac3d | 8042:e70975d5ff80 |
---|---|
585 } | 585 } |
586 } | 586 } |
587 | 587 |
588 #endif //CONFIG_ENCODERS | 588 #endif //CONFIG_ENCODERS |
589 | 589 |
590 #define tab_size ((signed)(sizeof(s->direct_scale_mv[0])/sizeof(int16_t))) | 590 #define tab_size ((signed)FF_ARRAY_ELEMS(s->direct_scale_mv[0])) |
591 #define tab_bias (tab_size/2) | 591 #define tab_bias (tab_size/2) |
592 | 592 |
593 void ff_mpeg4_init_direct_mv(MpegEncContext *s){ | 593 void ff_mpeg4_init_direct_mv(MpegEncContext *s){ |
594 int i; | 594 int i; |
595 for(i=0; i<tab_size; i++){ | 595 for(i=0; i<tab_size; i++){ |