avconv: print an error on applying options of the wrong type.

I.e. input options to output files or vice versa.
This commit is contained in:
Anton Khirnov
2013-02-20 08:02:16 +01:00
parent e460aa3282
commit 9d3009c6c4
3 changed files with 119 additions and 63 deletions

View File

@@ -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 {