History

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. Originally committed as revision 25456 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit cf5fe8e1 parent e259ead1 file · +2 −1Browse files

Unified · Split

libavfilter/avfilter.c+2−1
@@ -182,7 +182,8 @@ int avfilter_config_links(AVFilterContext *filter) · 181 unmodified lines
182182 return ret;
183183
184184 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;
186187
187188 if ((config_link = link->dstpad->config_props))
188189 if ((ret = config_link(link)) < 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t