diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-21 21:29:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-21 21:29:33 +0200 |
commit | ce4d91ba2a974addb53f4d649e50dbacc934db83 (patch) | |
tree | b8d61762ee82a74be0aaa9c523c2f3d3c7eb6e93 | |
parent | 1f359c85599b58ffed58e61e543f2acb0a3d6295 (diff) | |
download | ffmpeg-ce4d91ba2a974addb53f4d649e50dbacc934db83.tar.gz |
sws: document color range >8bit oddity
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 29c57119e7..92b2ac4f26 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1004,6 +1004,8 @@ int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4], c->srcRange = srcRange; c->dstRange = dstRange; + //The srcBpc check is possibly wrong but we seem to lack a definitive reference to test this + //and what we have in ticket 2939 looks better with this check if (need_reinit && c->srcBpc == 8) ff_sws_init_range_convert(c); |