History

lavfi/avfiltergraph: suggest a solution when format selection fails.

Format selection can fail if unknown channel layouts are used with filters that do not support it.

Nicolas George committed 13 years ago

Commit f775eb31 parent 863fb111 file · +4 −0Browse files

Unified · Split

libavfilter/avfiltergraph.c+4−0
@@ -654,6 +654,10 @@ static int pick_format(AVFilterLink *link, AVFilterLink *ref) · 653 unmodified lines
654654 av_log(link->src, AV_LOG_ERROR, "Cannot select channel layout for"
655655 " the link between filters %s and %s.\n", link->src->name,
656656 link->dst->name);
657+ if (!link->in_channel_layouts->all_counts)
658+ av_log(link->src, AV_LOG_ERROR, "Unknown channel layouts not "
659+ "supported, try specifying a channel layout using "
660+ "'aformat=channel_layouts=something'.\n");
657661 return AVERROR(EINVAL);
658662 }
659663 link->in_channel_layouts->nb_channel_layouts = 1;

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