From: Steinar H. Gunderson Date: Fri, 12 Oct 2012 20:30:38 +0000 (+0200) Subject: If an output is not in the right output gamma but is in linear, that has to be good... X-Git-Tag: 1.0~298 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=dbaedda69333076ce33dce196075729fd11d9558;p=movit If an output is not in the right output gamma but is in linear, that has to be good enough. Fixes an infinite loop. --- diff --git a/effect_chain.cpp b/effect_chain.cpp index a549087..a6ed91d 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -729,7 +729,8 @@ bool EffectChain::node_needs_gamma_fix(Node *node) // This needs to be before everything else, since it could // even apply to inputs (if they are the only effect). if (node->outgoing_links.empty() && - node->output_gamma_curve != output_format.gamma_curve) { + node->output_gamma_curve != output_format.gamma_curve && + node->output_gamma_curve != GAMMA_LINEAR) { return true; }