swscale/output: use isSemiPlanarYUV for NV12/21/24/42 case
This commit is contained in:
parent
f8e284be69
commit
cb3a6cc082
|
@ -2632,8 +2632,7 @@ av_cold void ff_sws_init_output_funcs(SwsContext *c,
|
||||||
} else {
|
} else {
|
||||||
*yuv2plane1 = yuv2plane1_8_c;
|
*yuv2plane1 = yuv2plane1_8_c;
|
||||||
*yuv2planeX = yuv2planeX_8_c;
|
*yuv2planeX = yuv2planeX_8_c;
|
||||||
if (dstFormat == AV_PIX_FMT_NV12 || dstFormat == AV_PIX_FMT_NV21 ||
|
if (isSemiPlanarYUV(dstFormat))
|
||||||
dstFormat == AV_PIX_FMT_NV24 || dstFormat == AV_PIX_FMT_NV42)
|
|
||||||
*yuv2nv12cX = yuv2nv12cX_c;
|
*yuv2nv12cX = yuv2nv12cX_c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue