Revision 910b5b82 libavfilter/avfilter.c

View differences:

libavfilter/avfilter.c
194 194
                link->time_base = link->src && link->src->input_count ?
195 195
                    link->src->inputs[0]->time_base : AV_TIME_BASE_Q;
196 196

  
197
            if (link->sample_aspect_ratio.num == 0 && link->sample_aspect_ratio.den == 0)
198
                link->sample_aspect_ratio = link->src->input_count ?
199
                    link->src->inputs[0]->sample_aspect_ratio : (AVRational){1,1};
200

  
197 201
            if ((config_link = link->dstpad->config_props))
198 202
                if ((ret = config_link(link)) < 0)
199 203
                    return ret;

Also available in: Unified diff