diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-05-14 14:07:50 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-05-14 14:07:50 +0000 |
commit | e36d79c837cbf47de524763fc1cbd49655e5f1a6 (patch) | |
tree | 84c9de3bd57a7d402006da7d6fd1640172c0369c /libavcodec/h264.c | |
parent | 37c26ae9ff72765c5470dba121408987e1f37273 (diff) | |
download | ffmpeg-e36d79c837cbf47de524763fc1cbd49655e5f1a6.tar.gz |
Change some leftover __attribute__((unused)) and __attribute__((used)) to
attribute_unused and attribute_used respectively to ease compiling on non-gcc.
Originally committed as revision 9024 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 17737908f3..489fad4f07 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1800,7 +1800,7 @@ static void pred4x4_vertical_right_c(uint8_t *src, uint8_t *topright, int stride 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_right_c(uint8_t *src, uint8_t *topright, int stride 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 @@ static void pred4x4_horizontal_down_c(uint8_t *src, uint8_t *topright, int strid 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 @@ static inline int get_cabac_cbf_ctx( H264Context *h, int cat, int idx ) { 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, |