Unified · Split
| @@ -429,8 +429,7 @@ static void yuv2nv12cX_c(enum AVPixelFormat dstFormat, const uint8_t *chrDither, · 428 unmodified lines | |||
| 429 | { | 429 | { |
| 430 | int i; | 430 | int i; |
| 431 | 431 | ||
| 432 | if (dstFormat == AV_PIX_FMT_NV12 || | 432 | if (!isSwappedChroma(dstFormat)) |
| 433 | dstFormat == AV_PIX_FMT_NV24) | ||
| 434 | for (i=0; i<chrDstW; i++) { | 433 | for (i=0; i<chrDstW; i++) { |
| 435 | int u = chrDither[i & 7] << 12; | 434 | int u = chrDither[i & 7] << 12; |
| 436 | int v = chrDither[(i + 3) & 7] << 12; | 435 | int v = chrDither[(i + 3) & 7] << 12; |