diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-01-31 18:51:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-31 21:32:06 +0100 |
commit | 14b171cd71f2b5f1cc66e4df89c2692f68ac098b (patch) | |
tree | d301b4b78e21e7399d0c9b9f4206e00b1b99578f /libavfilter/vf_transpose.c | |
parent | b482c001214fc519cf6be7802458bf8e441991b7 (diff) | |
download | ffmpeg-14b171cd71f2b5f1cc66e4df89c2692f68ac098b.tar.gz |
Add sample_aspect_ratio to AVFilterLink
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", |