Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-02-20 11:02:16 +0400
committerAnton Khirnov <anton@khirnov.net>2013-03-08 17:12:43 +0400
commit9d3009c6c4b9b6734f07df7c88f6a42ded6cdf38 (patch)
treea8cda259c49d4db73beafedcd025c7c4c0ab46c2 /cmdutils.h
parente460aa3282962aa3e89f19e207ec13b501187949 (diff)
avconv: print an error on applying options of the wrong type.
I.e. input options to output files or vice versa.
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index cdcfc0728e..1ae1978ab2 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -144,6 +144,8 @@ typedef struct OptionDef {
an int containing element count in the array. */
#define OPT_TIME 0x10000
#define OPT_DOUBLE 0x20000
+#define OPT_INPUT 0x40000
+#define OPT_OUTPUT 0x80000
union {
void *dst_ptr;
int (*func_arg)(void *, const char *, const char *);
@@ -224,6 +226,11 @@ typedef struct OptionGroupDef {
* are terminated by a non-option argument (e.g. avconv output files)
*/
const char *sep;
+ /**
+ * Option flags that must be set on each option that is
+ * applied to this group
+ */
+ int flags;
} OptionGroupDef;
typedef struct OptionGroup {