diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-02-02 19:39:56 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-02-14 13:07:21 +0000 |
commit | 910b5b82e8429f2e478d8e2aaff5e522c8848b59 (patch) | |
tree | 54c92515eecb0f90a6843596da4b00080b4ee8c0 /libavfilter/avfilter.c | |
parent | b7ec5cc4013242a9f30c429d2ce9c20ec01b03eb (diff) | |
download | ffmpeg-910b5b82e8429f2e478d8e2aaff5e522c8848b59.tar.gz |
Add sample_aspect_ratio to AVFilterLink
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 554fbd4105..872ca2384f 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -194,6 +194,10 @@ int avfilter_config_links(AVFilterContext *filter) link->time_base = link->src && link->src->input_count ? link->src->inputs[0]->time_base : AV_TIME_BASE_Q; + if (link->sample_aspect_ratio.num == 0 && link->sample_aspect_ratio.den == 0) + link->sample_aspect_ratio = link->src->input_count ? + link->src->inputs[0]->sample_aspect_ratio : (AVRational){1,1}; + if ((config_link = link->dstpad->config_props)) if ((ret = config_link(link)) < 0) return ret; |