This fixes configuration for all the filters which do not use the default config_props for the output link, and do not set explicitely the timebase. Originally committed as revision 25456 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -182,7 +182,8 @@ int avfilter_config_links(AVFilterContext *filter) · 181 unmodified lines | ||
| 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) |