Skip to content

Commit 253b897

Browse files
committed
swscale: remove primaries/trc change warning
This is now supported when using the new API.
1 parent 6da940e commit 253b897

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

libswscale/swscale.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,17 +1441,6 @@ int sws_frame_setup(SwsContext *ctx, const AVFrame *dst, const AVFrame *src)
14411441
goto fail;
14421442
}
14431443

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-
14551444
if (!ff_test_fmt(&src_fmt, 0)) {
14561445
err_msg = "Unsupported input";
14571446
ret = AVERROR(ENOTSUP);

0 commit comments

Comments
 (0)