aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_transpose.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-01-31 18:51:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-01-31 21:32:06 +0100
commit14b171cd71f2b5f1cc66e4df89c2692f68ac098b (patch)
treed301b4b78e21e7399d0c9b9f4206e00b1b99578f /libavfilter/vf_transpose.c
parentb482c001214fc519cf6be7802458bf8e441991b7 (diff)
downloadffmpeg-14b171cd71f2b5f1cc66e4df89c2692f68ac098b.tar.gz
Add sample_aspect_ratio to AVFilterLink
Diffstat (limited to 'libavfilter/vf_transpose.c')
-rw-r--r--libavfilter/vf_transpose.c5
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",