[FFmpeg-cvslog] r20222 - trunk/libavcodec/rawdec.c
reimar
subversion
Tue Oct 13 10:23:01 CEST 2009
Author: reimar
Date: Tue Oct 13 10:23:00 2009
New Revision: 20222
Log:
Simplify: use FFSWAP
Modified:
trunk/libavcodec/rawdec.c
Modified: trunk/libavcodec/rawdec.c
==============================================================================
--- trunk/libavcodec/rawdec.c Tue Oct 13 10:08:10 2009 (r20221)
+++ trunk/libavcodec/rawdec.c Tue Oct 13 10:23:00 2009 (r20222)
@@ -142,12 +142,7 @@ static int raw_decode(AVCodecContext *av
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) {
More information about the ffmpeg-cvslog
mailing list