# HG changeset patch # User kostya # Date 1251629656 0 # Node ID e37de8b92b1092e3613e15c342c2fe519e3b5fcb # Parent 8078ecd2fe4c393734576a218bde746568c98998 Convert ZERO8x2 macro into inline function diff -r 8078ecd2fe4c -r e37de8b92b10 rv34.c --- a/rv34.c Sun Aug 30 08:29:11 2009 +0000 +++ b/rv34.c Sun Aug 30 10:54:16 2009 +0000 @@ -37,9 +37,11 @@ //#define DEBUG -#define ZERO8x2(dst, stride) \ - fill_rectangle(dst, 1, 2, stride, 0, 4); \ - fill_rectangle(((uint8_t*)(dst))+4, 1, 2, stride, 0, 4); \ +static inline void ZERO8x2(void* dst, int stride) +{ + fill_rectangle(dst, 1, 2, stride, 0, 4); + fill_rectangle(((uint8_t*)(dst))+4, 1, 2, stride, 0, 4); +} /** translation of RV30/40 macroblock types to lavc ones */ static const int rv34_mb_type_to_lavc[12] = {