Mercurial > libavcodec.hg
diff h264.c @ 5006:28ebdd244a07 libavcodec
Change some leftover __attribute__((unused)) and __attribute__((used)) to
attribute_unused and attribute_used respectively to ease compiling on non-gcc.
author | reimar |
---|---|
date | Mon, 14 May 2007 14:07:50 +0000 |
parents | 7df30f671791 |
children | ed6b3efebf1e |
line wrap: on
line diff
--- a/h264.c Mon May 14 11:53:27 2007 +0000 +++ b/h264.c Mon May 14 14:07:50 2007 +0000 @@ -1800,7 +1800,7 @@ const int lt= src[-1-1*stride]; LOAD_TOP_EDGE LOAD_LEFT_EDGE - const __attribute__((unused)) int unu= l3; + const attribute_unused int unu= l3; src[0+0*stride]= src[1+2*stride]=(lt + t0 + 1)>>1; @@ -1823,7 +1823,7 @@ static void pred4x4_vertical_left_c(uint8_t *src, uint8_t *topright, int stride){ LOAD_TOP_EDGE LOAD_TOP_RIGHT_EDGE - const __attribute__((unused)) int unu= t7; + const attribute_unused int unu= t7; src[0+0*stride]=(t0 + t1 + 1)>>1; src[1+0*stride]= @@ -1868,7 +1868,7 @@ const int lt= src[-1-1*stride]; LOAD_TOP_EDGE LOAD_LEFT_EDGE - const __attribute__((unused)) int unu= t3; + const attribute_unused int unu= t3; src[0+0*stride]= src[2+1*stride]=(lt + l0 + 1)>>1; @@ -5655,7 +5655,7 @@ return ctx + 4 * cat; } -static const __attribute((used)) uint8_t last_coeff_flag_offset_8x8[63] = { +static const attribute_used uint8_t last_coeff_flag_offset_8x8[63] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,