Revision 35fe66ab libavfilter/vf_transpose.c

View differences:

libavfilter/vf_transpose.c
122 122
                                                 outlink->w, outlink->h);
123 123
    outlink->out_buf->pts = picref->pts;
124 124

  
125
    if (picref->video->pixel_aspect.num == 0) {
126
        outlink->out_buf->video->pixel_aspect = picref->video->pixel_aspect;
125
    if (picref->video->sample_aspect_ratio.num == 0) {
126
        outlink->out_buf->video->sample_aspect_ratio = picref->video->sample_aspect_ratio;
127 127
    } else {
128
        outlink->out_buf->video->pixel_aspect.num = picref->video->pixel_aspect.den;
129
        outlink->out_buf->video->pixel_aspect.den = picref->video->pixel_aspect.num;
128
        outlink->out_buf->video->sample_aspect_ratio.num = picref->video->sample_aspect_ratio.den;
129
        outlink->out_buf->video->sample_aspect_ratio.den = picref->video->sample_aspect_ratio.num;
130 130
    }
131 131

  
132 132
    avfilter_start_frame(outlink, avfilter_ref_buffer(outlink->out_buf, ~0));

Also available in: Unified diff