1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

sws: document color range >8bit oddity

This commit is contained in:
Michael Niedermayer 2014-05-21 21:29:33 +02:00
parent 1f359c8559
commit ce4d91ba2a

View File

@ -1004,6 +1004,8 @@ int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4],
c->srcRange = srcRange; c->srcRange = srcRange;
c->dstRange = dstRange; 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) if (need_reinit && c->srcBpc == 8)
ff_sws_init_range_convert(c); ff_sws_init_range_convert(c);