diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-02-02 22:39:56 +0300 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-02-14 16:07:21 +0300 |
commit | 910b5b82e8429f2e478d8e2aaff5e522c8848b59 (patch) | |
tree | 54c92515eecb0f90a6843596da4b00080b4ee8c0 /libavfilter/vf_transpose.c | |
parent | b7ec5cc4013242a9f30c429d2ce9c20ec01b03eb (diff) |
Add sample_aspect_ratio to AVFilterLink
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavfilter/vf_transpose.c')
-rw-r--r-- | libavfilter/vf_transpose.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c index 970c38120d..272b17ff1a 100644 --- a/libavfilter/vf_transpose.c +++ b/libavfilter/vf_transpose.c @@ -102,6 +102,11 @@ static int config_props_output(AVFilterLink *outlink) outlink->w = inlink->h; outlink->h = inlink->w; + if (inlink->sample_aspect_ratio.num){ + outlink->sample_aspect_ratio = av_div_q((AVRational){1,1}, inlink->sample_aspect_ratio); + } else + outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; + av_log(ctx, AV_LOG_INFO, "w:%d h:%d dir:%d -> w:%d h:%d rotation:%s vflip:%d\n", inlink->w, inlink->h, trans->dir, outlink->w, outlink->h, trans->dir == 1 || trans->dir == 3 ? "clockwise" : "counterclockwise", |