We are already setting the range, so we can use regular YUV pixel formats instead of YUVJ.
Unified · Split
| @@ -46,8 +46,8 @@ static void check_lumConvertRange(int from) · 45 unmodified lines | ||
| 46 | 46 | fail(); |
| 47 | 47 | |
| 48 | 48 | c = sws_internal(sws); |
| 49 | − c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P; | |
| 50 | − c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P; | |
| 49 | + c->srcFormat = AV_PIX_FMT_YUV444P; | |
| 50 | + c->dstFormat = AV_PIX_FMT_YUV444P; | |
| 51 | 51 | c->srcRange = from; |
| 52 | 52 | c->dstRange = !from; |
| 53 | 53 | |
| @@ -92,8 +92,8 @@ static void check_chrConvertRange(int from) · 38 unmodified lines | ||
| 92 | 92 | fail(); |
| 93 | 93 | |
| 94 | 94 | c = sws_internal(sws); |
| 95 | − c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P; | |
| 96 | − c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P; | |
| 95 | + c->srcFormat = AV_PIX_FMT_YUV444P; | |
| 96 | + c->dstFormat = AV_PIX_FMT_YUV444P; | |
| 97 | 97 | c->srcRange = from; |
| 98 | 98 | c->dstRange = !from; |
| 99 | 99 | |