This is now supported when using the new API.
Unified · Split
| @@ -1441,17 +1441,6 @@ int sws_frame_setup(SwsContext *ctx, const AVFrame *dst, const AVFrame *src) · 1440 unmodified lines | ||
| 1441 | 1441 | goto fail; |
| 1442 | 1442 | } |
| 1443 | 1443 | |
| 1444 | − /* TODO: remove once implemented */ | |
| 1445 | − if ((dst_fmt.color.prim != src_fmt.color.prim || | |
| 1446 | − dst_fmt.color.trc != src_fmt.color.trc) && | |
| 1447 | − !s->color_conversion_warned) | |
| 1448 | − { | |
| 1449 | − av_log(ctx, AV_LOG_WARNING, "Conversions between different primaries / " | |
| 1450 | − "transfer functions are not currently implemented, expect " | |
| 1451 | − "wrong results.\n"); | |
| 1452 | − s->color_conversion_warned = 1; | |
| 1453 | − } | |
| 1454 | − | |
| 1455 | 1444 | if (!ff_test_fmt(&src_fmt, 0)) { |
| 1456 | 1445 | err_msg = "Unsupported input"; |
| 1457 | 1446 | ret = AVERROR(ENOTSUP); |