diff mbox series

[FFmpeg-devel,07/16] swscale/output: use isSwappedChroma

Message ID 20211224030904.1196-8-rcombs@rcombs.me
State Accepted
Commit df9180d8a072ac86ced8930a5d6bd0e61e314749
Headers show
Series [FFmpeg-devel,01/16] swscale/output: template-ize yuv2nv12cX 10-bit and 16-bit cases | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc fail Make fate failed

Commit Message

Ridley Combs Dec. 24, 2021, 3:08 a.m. UTC
---
 libswscale/output.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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;