History

swscale: remove primaries/trc change warning

This is now supported when using the new API.

Niklas Haas committed 1 year ago

Commit 253b8971 parent 6da940e1 file · +0 −11Browse files

Unified · Split

libswscale/swscale.c+0−11
@@ -1441,17 +1441,6 @@ int sws_frame_setup(SwsContext *ctx, const AVFrame *dst, const AVFrame *src) · 1440 unmodified lines
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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t