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