[FFmpeg-cvslog] avfilter/fade: use FADE_OUT macro.
Clément Bœsch
git at videolan.org
Sun Nov 10 19:17:48 CET 2013
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Nov 10 19:16:45 2013 +0100| [199b8fbd09f0db237374938577665b0531b4498f] | committer: Clément Bœsch
avfilter/fade: use FADE_OUT macro.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=199b8fbd09f0db237374938577665b0531b4498f
---
libavfilter/vf_fade.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index 387c128..cc10b12 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list