[FFmpeg-cvslog] r25456 - trunk/libavfilter/avfilter.c
stefano
subversion
Wed Oct 13 00:32:31 CEST 2010
Author: stefano
Date: Wed Oct 13 00:32:31 2010
New Revision: 25456
Log:
Make avfilter_config_links() use the timebase of the first input link
of a filter for setting the output timebase, if there is such a link,
rather than always use AV_TIME_BASE_Q.
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.
Modified:
trunk/libavfilter/avfilter.c
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c Tue Oct 12 20:44:28 2010 (r25455)
+++ trunk/libavfilter/avfilter.c Wed Oct 13 00:32:31 2010 (r25456)
@@ -182,7 +182,8 @@ int avfilter_config_links(AVFilterContex
return ret;
if (link->time_base.num == 0 && link->time_base.den == 0)
- link->time_base = AV_TIME_BASE_Q;
+ link->time_base = link->src && link->src->input_count ?
+ link->src->inputs[0]->time_base : AV_TIME_BASE_Q;
if ((config_link = link->dstpad->config_props))
if ((ret = config_link(link)) < 0)
More information about the ffmpeg-cvslog
mailing list