[FFmpeg-devel] [PATCH] lavu/opt.h: add AV_OPT_FLAG_FILTERING_PARAM macro
Stefano Sabatini
stefasab at gmail.com
Thu Aug 9 23:00:32 CEST 2012
---
libavutil/opt.c | 1 +
libavutil/opt.h | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 02869e4..0adbddd 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -634,6 +634,7 @@ static void opt_list(void *obj, void *av_log_obj, const char *unit,
}
av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_ENCODING_PARAM) ? 'E' : '.');
av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_DECODING_PARAM) ? 'D' : '.');
+ av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_FILTERING_PARAM)? 'F' : '.');
av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_VIDEO_PARAM ) ? 'V' : '.');
av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_AUDIO_PARAM ) ? 'A' : '.');
av_log(av_log_obj, AV_LOG_INFO, "%c", (opt->flags & AV_OPT_FLAG_SUBTITLE_PARAM) ? 'S' : '.');
diff --git a/libavutil/opt.h b/libavutil/opt.h
index b947814..76b8bcd 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -279,6 +279,8 @@ typedef struct AVOption {
#define AV_OPT_FLAG_AUDIO_PARAM 8
#define AV_OPT_FLAG_VIDEO_PARAM 16
#define AV_OPT_FLAG_SUBTITLE_PARAM 32
+#define AV_OPT_FLAG_FILTERING_PARAM 64
+
//FIXME think about enc-audio, ... style flags
/**
--
1.7.5.4
More information about the ffmpeg-devel
mailing list