aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/output.c
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2021-12-23 03:52:33 -0600
committerrcombs <rcombs@rcombs.me>2022-01-04 19:39:22 -0600
commitdf9180d8a072ac86ced8930a5d6bd0e61e314749 (patch)
tree83a6db1bddec8f48b83a3afe9f17afa76670b60d /libswscale/output.c
parentcb3a6cc08275b0251edfc346f8d7afc595555e52 (diff)
downloadffmpeg-df9180d8a072ac86ced8930a5d6bd0e61e314749.tar.gz
swscale/output: use isSwappedChroma
Diffstat (limited to 'libswscale/output.c')
-rw-r--r--libswscale/output.c3
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;