Revision cf5fe8ec

View differences:

libavfilter/avfilter.c
182 182
                return ret;
183 183

  
184 184
            if (link->time_base.num == 0 && link->time_base.den == 0)
185
                link->time_base = AV_TIME_BASE_Q;
185
                link->time_base = link->src && link->src->input_count ?
186
                    link->src->inputs[0]->time_base : AV_TIME_BASE_Q;
186 187

  
187 188
            if ((config_link = link->dstpad->config_props))
188 189
                if ((ret = config_link(link)) < 0)

Also available in: Unified diff