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-06-25 12:04:32 +0200
commit50722b4f0cbc5940e9e6e21d113888436cc89ff5 (patch)
tree6e056d850cdfd6c3c91d75e97f4c6af2cbade392 /avconv.h
parentba7397baef796ca3991fe1c921bc91054407c48b (diff)
avconv: decouple configuring filtergraphs and setting output parameters
Currently, a filtergraph will pull in the output constraints from its corresponding decoder context, which breaks proper layering. Instead, explicitly send the constaints on the output parameters to the filtergraph. This is similar to what is done for filtergraph inputs in 30ab4c51a180610d9f1720c75518d763515c0d9f
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 e201b92bca..03e851d1c7 100644
--- a/avconv.h
+++ b/avconv.h
@@ -221,6 +221,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 {