Mercurial > libavcodec.hg
changeset 10390:5198794511a4 libavcodec
Simplify: use FFSWAP
author | reimar |
---|---|
date | Tue, 13 Oct 2009 08:23:00 +0000 |
parents | c857cd6b77b6 |
children | 74715d4288ad |
files | rawdec.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/rawdec.c Mon Oct 12 19:50:31 2009 +0000 +++ b/rawdec.c Tue Oct 13 08:23:00 2009 +0000 @@ -142,12 +142,7 @@ 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) {