aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/framerate.h
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2019-09-24 18:18:09 +0800
committerMarton Balint <cus@passwd.hu>2019-09-28 21:53:55 +0200
commit86f0411a5270295963d32c42a192193400c2c912 (patch)
tree8989ac5edb75f416ee510b7b920ee0cb9195fbec /libavfilter/framerate.h
parentfd5fdca95337aaaf82e69af94c8a1a18fe1bce4e (diff)
downloadffmpeg-86f0411a5270295963d32c42a192193400c2c912.tar.gz
avfilter/vf_framerate: remove duplicate code with macro-based function
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/framerate.h')
-rw-r--r--libavfilter/framerate.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/framerate.h b/libavfilter/framerate.h
index 2947c54cc6..d255635686 100644
--- a/libavfilter/framerate.h
+++ b/libavfilter/framerate.h
@@ -28,8 +28,7 @@
ptrdiff_t width, ptrdiff_t height, \
int factor1, int factor2, int half
-#define BLEND_FACTOR_DEPTH8 7
-#define BLEND_FACTOR_DEPTH16 15
+#define BLEND_FACTOR_DEPTH(n) (n-1)
typedef void (*blend_func)(BLEND_FUNC_PARAMS);