[FFmpeg-cvslog] avfilter/interlace: fix opt flags
Clément Bœsch
git at videolan.org
Tue Sep 8 22:55:54 CEST 2015
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Sep 8 22:47:16 2015 +0200| [0b93c6d83167e08405ab4ebbeec6c74d28de002e] | committer: Clément Bœsch
avfilter/interlace: fix opt flags
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b93c6d83167e08405ab4ebbeec6c74d28de002e
---
libavfilter/vf_interlace.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c
index 28315c3..dcc9413 100644
--- a/libavfilter/vf_interlace.c
+++ b/libavfilter/vf_interlace.c
@@ -38,16 +38,16 @@
#include "video.h"
#define OFFSET(x) offsetof(InterlaceContext, x)
-#define V AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
static const AVOption interlace_options[] = {
{ "scan", "scanning mode", OFFSET(scan),
- AV_OPT_TYPE_INT, {.i64 = MODE_TFF }, 0, 1, .flags = V, .unit = "scan" },
+ AV_OPT_TYPE_INT, {.i64 = MODE_TFF }, 0, 1, .flags = FLAGS, .unit = "scan" },
{ "tff", "top field first", 0,
- AV_OPT_TYPE_CONST, {.i64 = MODE_TFF }, INT_MIN, INT_MAX, .flags = V, .unit = "scan" },
+ AV_OPT_TYPE_CONST, {.i64 = MODE_TFF }, INT_MIN, INT_MAX, .flags = FLAGS, .unit = "scan" },
{ "bff", "bottom field first", 0,
- AV_OPT_TYPE_CONST, {.i64 = MODE_BFF }, INT_MIN, INT_MAX, .flags = V, .unit = "scan" },
+ AV_OPT_TYPE_CONST, {.i64 = MODE_BFF }, INT_MIN, INT_MAX, .flags = FLAGS, .unit = "scan" },
{ "lowpass", "set vertical low-pass filter", OFFSET(lowpass),
- AV_OPT_TYPE_BOOL, {.i64 = 1 }, 0, 1, .flags = V },
+ AV_OPT_TYPE_BOOL, {.i64 = 1 }, 0, 1, .flags = FLAGS },
{ NULL }
};
More information about the ffmpeg-cvslog
mailing list