mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 13:21:08 +00:00
Simplify: use FFSWAP
Originally committed as revision 20222 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1e69999334
commit
c522b4e94e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user