Revision 910b5b82 libavfilter/vf_transpose.c

View differences:

libavfilter/vf_transpose.c
102 102
    outlink->w = inlink->h;
103 103
    outlink->h = inlink->w;
104 104

  
105
    if (inlink->sample_aspect_ratio.num){
106
        outlink->sample_aspect_ratio = av_div_q((AVRational){1,1}, inlink->sample_aspect_ratio);
107
    } else
108
        outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
109

  
105 110
    av_log(ctx, AV_LOG_INFO, "w:%d h:%d dir:%d -> w:%d h:%d rotation:%s vflip:%d\n",
106 111
           inlink->w, inlink->h, trans->dir, outlink->w, outlink->h,
107 112
           trans->dir == 1 || trans->dir == 3 ? "clockwise" : "counterclockwise",

Also available in: Unified diff