swscale/output: use isSwappedChroma
This commit is contained in:
parent
cb3a6cc082
commit
df9180d8a0
|
@ -429,8 +429,7 @@ static void yuv2nv12cX_c(enum AVPixelFormat dstFormat, const uint8_t *chrDither,
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (dstFormat == AV_PIX_FMT_NV12 ||
|
if (!isSwappedChroma(dstFormat))
|
||||||
dstFormat == AV_PIX_FMT_NV24)
|
|
||||||
for (i=0; i<chrDstW; i++) {
|
for (i=0; i<chrDstW; i++) {
|
||||||
int u = chrDither[i & 7] << 12;
|
int u = chrDither[i & 7] << 12;
|
||||||
int v = chrDither[(i + 3) & 7] << 12;
|
int v = chrDither[(i + 3) & 7] << 12;
|
||||||
|
|
Loading…
Reference in New Issue