Message ID | 20211224030904.1196-7-rcombs@rcombs.me |
---|---|
State | Accepted |
Commit | cb3a6cc08275b0251edfc346f8d7afc595555e52 |
Headers | show |
Series | [FFmpeg-devel,01/16] swscale/output: template-ize yuv2nv12cX 10-bit and 16-bit cases | expand |
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 |
diff --git a/libswscale/output.c b/libswscale/output.c index 7cedb145aa..90f5efa16e 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -2632,8 +2632,7 @@ av_cold void ff_sws_init_output_funcs(SwsContext *c, } else { *yuv2plane1 = yuv2plane1_8_c; *yuv2planeX = yuv2planeX_8_c; - if (dstFormat == AV_PIX_FMT_NV12 || dstFormat == AV_PIX_FMT_NV21 || - dstFormat == AV_PIX_FMT_NV24 || dstFormat == AV_PIX_FMT_NV42) + if (isSemiPlanarYUV(dstFormat)) *yuv2nv12cX = yuv2nv12cX_c; }