diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-11-01 21:28:36 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-11-01 21:28:36 +0000 |
commit | 1345f4ed6ce47a89b4200a7d865d6a19e99454da (patch) | |
tree | 68ab0fa8d1d068d2939a2245970071dabae0f3fa /libavcodec | |
parent | e344c1ea36f228e2987e25327638771c4cedcd33 (diff) | |
download | ffmpeg-1345f4ed6ce47a89b4200a7d865d6a19e99454da.tar.gz |
Rename SWAP macro to FFSWAP.
Originally committed as revision 6865 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dsicinav.c | 2 | ||||
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c index 59a4345abd..ded53c45ab 100644 --- a/libavcodec/dsicinav.c +++ b/libavcodec/dsicinav.c @@ -278,7 +278,7 @@ static int cinvideo_decode_frame(AVCodecContext *avctx, cin->bitmap_table[CIN_CUR_BMP] + y * cin->avctx->width, cin->avctx->width); - SWAP(uint8_t *, cin->bitmap_table[CIN_CUR_BMP], cin->bitmap_table[CIN_PRE_BMP]); + FFSWAP(uint8_t *, cin->bitmap_table[CIN_CUR_BMP], cin->bitmap_table[CIN_PRE_BMP]); *data_size = sizeof(AVFrame); *(AVFrame *)data = cin->frame; diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 576a6b8acc..9bfb66b04c 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1705,8 +1705,8 @@ static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h if(FFABS(ex - sx) > FFABS(ey - sy)){ if(sx > ex){ - SWAP(int, sx, ex); - SWAP(int, sy, ey); + FFSWAP(int, sx, ex); + FFSWAP(int, sy, ey); } buf+= sx + sy*stride; ex-= sx; @@ -1719,8 +1719,8 @@ static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h } }else{ if(sy > ey){ - SWAP(int, sx, ex); - SWAP(int, sy, ey); + FFSWAP(int, sx, ex); + FFSWAP(int, sy, ey); } buf+= sx + sy*stride; ey-= sy; |