aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-13 08:23:00 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-13 08:23:00 +0000
commitc522b4e94eefaf4a7294e11f3f1940fcc52e4ddc (patch)
tree99612ec5d99081a52cf6c1fc9a473e8230d9803b /libavcodec
parent1e6999933478bca298ef92fe05e4224385bfd697 (diff)
downloadffmpeg-c522b4e94eefaf4a7294e11f3f1940fcc52e4ddc.tar.gz
Simplify: use FFSWAP
Originally committed as revision 20222 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/rawdec.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 2f29271c9a..5439a47d9c 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -142,12 +142,7 @@ static int raw_decode(AVCodecContext *avctx,
if ( avctx->codec_tag == MKTAG('Y', 'V', '1', '2')
|| avctx->codec_tag == MKTAG('Y', 'V', 'U', '9'))
- {
- // swap fields
- unsigned char *tmp = picture->data[1];
- picture->data[1] = picture->data[2];
- picture->data[2] = tmp;
- }
+ FFSWAP(uint8_t *, picture->data[1], picture->data[2]);
if(avctx->codec_tag == AV_RL32("yuv2") &&
avctx->pix_fmt == PIX_FMT_YUYV422) {