Revision c522b4e9 libavcodec/rawdec.c

View differences:

libavcodec/rawdec.c
142 142

  
143 143
    if (   avctx->codec_tag == MKTAG('Y', 'V', '1', '2')
144 144
        || avctx->codec_tag == MKTAG('Y', 'V', 'U', '9'))
145
    {
146
        // swap fields
147
        unsigned char *tmp = picture->data[1];
148
        picture->data[1] = picture->data[2];
149
        picture->data[2] = tmp;
150
    }
145
        FFSWAP(uint8_t *, picture->data[1], picture->data[2]);
151 146

  
152 147
    if(avctx->codec_tag == AV_RL32("yuv2") &&
153 148
       avctx->pix_fmt   == PIX_FMT_YUYV422) {

Also available in: Unified diff