From 9d3009c6c4b9b6734f07df7c88f6a42ded6cdf38 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 20 Feb 2013 08:02:16 +0100 Subject: avconv: print an error on applying options of the wrong type. I.e. input options to output files or vice versa. --- cmdutils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmdutils.h') 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 { -- cgit v1.2.3