Skip to content

Commit

Permalink
sws: document color range >8bit oddity
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelni committed May 21, 2014
1 parent 1f359c8 commit ce4d91b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libswscale/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ce4d91b

Please sign in to comment.