avfilter/fade: use FADE_OUT macro.
authorClément Bœsch <u@pkh.me>
Sun, 10 Nov 2013 18:16:45 +0000 (19:16 +0100)
committerClément Bœsch <u@pkh.me>
Sun, 10 Nov 2013 18:16:45 +0000 (19:16 +0100)
libavfilter/vf_fade.c

index 387c128..cc10b12 100644 (file)
@@ -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;
     }