Commit 19082cc0 authored by reimar's avatar reimar

Simplify: use FFSWAP


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20222 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 78087a03
...@@ -142,12 +142,7 @@ static int raw_decode(AVCodecContext *avctx, ...@@ -142,12 +142,7 @@ static int raw_decode(AVCodecContext *avctx,
if ( avctx->codec_tag == MKTAG('Y', 'V', '1', '2') if ( avctx->codec_tag == MKTAG('Y', 'V', '1', '2')
|| avctx->codec_tag == MKTAG('Y', 'V', 'U', '9')) || avctx->codec_tag == MKTAG('Y', 'V', 'U', '9'))
{ FFSWAP(uint8_t *, picture->data[1], picture->data[2]);
// swap fields
unsigned char *tmp = picture->data[1];
picture->data[1] = picture->data[2];
picture->data[2] = tmp;
}
if(avctx->codec_tag == AV_RL32("yuv2") && if(avctx->codec_tag == AV_RL32("yuv2") &&
avctx->pix_fmt == PIX_FMT_YUYV422) { avctx->pix_fmt == PIX_FMT_YUYV422) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment