mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
configure: Add print_3_columns helper function and use where appropriate
This commit is contained in:
parent
040c565e51
commit
7432e87206
8
configure
vendored
8
configure
vendored
@ -1965,10 +1965,14 @@ die_unknown(){
|
||||
exit 1
|
||||
}
|
||||
|
||||
print_3_columns() {
|
||||
cat | tr ' ' '\n' | sort | pr -r -3 -t
|
||||
}
|
||||
|
||||
show_list() {
|
||||
suffix=_$1
|
||||
shift
|
||||
echo $* | sed s/$suffix//g | tr ' ' '\n' | sort | pr -3 -t
|
||||
echo $* | sed s/$suffix//g | print_3_columns
|
||||
exit 0
|
||||
}
|
||||
|
||||
@ -3841,7 +3845,7 @@ echo
|
||||
for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do
|
||||
echo "Enabled ${type}s:"
|
||||
eval list=\$$(toupper $type)_LIST
|
||||
print_enabled '_*' $list | sort | pr -r -3 -t
|
||||
print_enabled '_*' $list | print_3_columns
|
||||
echo
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user