summaryrefslogtreecommitdiff
path: root/avconv.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-05-23 14:09:08 +0200
committerAnton Khirnov <anton@khirnov.net>2016-05-30 17:08:56 +0200
commitf9f1dab39f89db1c822aec9888c1dd5a14cf762f (patch)
treef6208567dca209c0eba9004953fff03c82fbd171 /avconv.h
parent5ebe14e8d998a5518cbe22bd877fb8a851a2ac98 (diff)
avconv: decouple configuring filtergraphs and setting output parameters
The reasoning is the same as in 563aa6b80bf87712910404d6fb5495a75e40ae86
Diffstat (limited to 'avconv.h')
-rw-r--r--avconv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/avconv.h b/avconv.h
index b4e2bdb427..163919723e 100644
--- a/avconv.h
+++ b/avconv.h
@@ -219,6 +219,18 @@ typedef struct OutputFilter {
/* temporary storage until stream maps are processed */
AVFilterInOut *out_tmp;
enum AVMediaType type;
+
+ /* desired output stream properties */
+ int width, height;
+ AVRational frame_rate;
+ int format;
+ int sample_rate;
+ uint64_t channel_layout;
+
+ // those are only set if no format is specified and the encoder gives us multiple options
+ int *formats;
+ uint64_t *channel_layouts;
+ int *sample_rates;
} OutputFilter;
typedef struct FilterGraph {