diff options
author | rcombs <rcombs@rcombs.me> | 2021-12-23 03:52:33 -0600 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2022-01-04 20:01:10 -0600 |
commit | 9f7875c18e3de1b6ee6f3c6fdff903e992111aec (patch) | |
tree | 782d0a4e78c45d73192f382c84e143ef431dca30 | |
parent | 656ffdbd282cc6b14803ebfa7a0d22b5c9dbddfa (diff) | |
download | ffmpeg-9f7875c18e3de1b6ee6f3c6fdff903e992111aec.tar.gz |
swscale/output: use isSwappedChroma
-rw-r--r-- | libswscale/output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libswscale/output.c b/libswscale/output.c index 90f5efa16e..773f3ce059 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -429,8 +429,7 @@ static void yuv2nv12cX_c(enum AVPixelFormat dstFormat, const uint8_t *chrDither, { int i; - if (dstFormat == AV_PIX_FMT_NV12 || - dstFormat == AV_PIX_FMT_NV24) + if (!isSwappedChroma(dstFormat)) for (i=0; i<chrDstW; i++) { int u = chrDither[i & 7] << 12; int v = chrDither[(i + 3) & 7] << 12; |