History

lavfi: when configuring a link, set channel layout from previous link if unspecified

In avfilter_config_links(), if the current channel layout is not specified, set the same value of the previous link in the filterchain. Consistent with the logic used to set the other link parameters.

Stefano Sabatini committed 14 years ago

Commit 34bf06a1 parent 06fc74b1 file · +2 −0Browse files

Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfilter.c+2−0
@@ -277,6 +277,8 @@ int avfilter_config_links(AVFilterContext *filter) · 276 unmodified lines
277 link->sample_rate = inlink->sample_rate;277 link->sample_rate = inlink->sample_rate;
278 if (!link->time_base.num && !link->time_base.den)278 if (!link->time_base.num && !link->time_base.den)
279 link->time_base = inlink->time_base;279 link->time_base = inlink->time_base;
280 if (!link->channel_layout)
281 link->channel_layout = inlink->channel_layout;
280 } else if (!link->sample_rate) {282 } else if (!link->sample_rate) {
281 av_log(link->src, AV_LOG_ERROR,283 av_log(link->src, AV_LOG_ERROR,
282 "Audio source filters must set their output link's "284 "Audio source filters must set their output link's "

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