@@ -385,6 +385,8 @@ pixfmts(){
filter_args=$1
prefilter_chain=$2
nframes=${3:-1}
+ # be,le
+ endian_mode=$4
showfiltfmts="$target_exec $target_path/libavfilter/tests/filtfmts${EXECSUF}"
scale_exclude_fmts=${outfile}_scale_exclude_fmts
@@ -402,8 +404,13 @@ pixfmts(){
outertest=$test
for pix_fmt in $pix_fmts; do
- test=$pix_fmt
- video_filter "${prefilter_chain}format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt -frames:v $nframes
+ if [ "$endian_mode" = "le" ]; then
+ output_pix_fmt=`echo $pix_fmt | sed "s/\(.*\)be/\1le/"`
+ else
+ output_pix_fmt=$pix_fmt
+ fi
+ test=$output_pix_fmt
+ video_filter "${prefilter_chain}format=$pix_fmt,$filter=$filter_args" -pix_fmt $output_pix_fmt -frames:v $nframes
done
rm $in_fmts $scale_in_fmts $scale_out_fmts $scale_exclude_fmts