Commit 199b8fbd authored by Clément Bœsch's avatar Clément Bœsch

avfilter/fade: use FADE_OUT macro.

parent 981128c2
......@@ -317,7 +317,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
s->factor = av_clip_uint16(s->factor);
// Invert fade_factor if Fading Out
if (s->type == 1) {
if (s->type == FADE_OUT) {
s->factor=UINT16_MAX-s->factor;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment