@@ -54,10 +54,20 @@ fflight=false
54
54
# Ask me questions and show the intro or run only with options configured above! (default: true)
55
55
askmequestions=true
56
56
# ##
57
- if ${ffmbc}
57
+ echo $1
58
+ if ${ffmbc} || [[ $1 -eq " ffmbc" ]]
58
59
then
59
- ffvanilla=true
60
- ffnonfree=false
60
+ ffmbc=true
61
+ if [[ $2 -eq " full" ]]
62
+ then
63
+ ffvanilla=false
64
+ ffnonfree=true
65
+ ffshared=true
66
+ ffstatic=true
67
+ else
68
+ ffvanilla=true
69
+ ffnonfree=false
70
+ fi
61
71
askmequestions=false
62
72
ffmpeg=false
63
73
fflight=false
@@ -761,23 +771,23 @@ build_ffmbc() {
761
771
echo -e " ${PASS} Already patched ${file2patch} ${RST} "
762
772
else
763
773
echo -e " ${INFO} Patching ${file2patch} ${RST} "
764
- # sed -i '28 i#include \"dxva.h\"' $file2patch
774
+ sed -i ' 28 i#include \"dxva.h\"' $file2patch
765
775
fi
766
776
file2patch=" libavdevice/dshow_filter.c"
767
777
if grep -Fxq " #define NO_DSHOW_STRSAFE" $file2patch
768
778
then
769
779
echo -e " ${PASS} Already patched ${file2patch} ${RST} "
770
780
else
771
781
echo -e " ${INFO} Patching ${file2patch} ${RST} "
772
- # sed -i '22 i#define NO_DSHOW_STRSAFE' $file2patch
782
+ sed -i ' 22 i#define NO_DSHOW_STRSAFE' $file2patch
773
783
fi
774
784
local file2patch=" libavdevice/dshow_pin.c"
775
785
if grep -Fxq " #define NO_DSHOW_STRSAFE" $file2patch
776
786
then
777
787
echo -e " ${PASS} Already patched ${file2patch} ${RST} "
778
788
else
779
789
echo -e " ${INFO} Patching ${file2patch} ${RST} "
780
- # sed -i '22 i#define NO_DSHOW_STRSAFE' $file2patch
790
+ sed -i ' 22 i#define NO_DSHOW_STRSAFE' $file2patch
781
791
fi
782
792
783
793
if [[ " $1 " = " shared" ]]
@@ -1025,7 +1035,7 @@ build_all() {
1025
1035
if $ffbuildshared
1026
1036
then
1027
1037
# only build vanilla shared libs, as others failATM
1028
- if $ffmbc && $ffvanilla
1038
+ if $ffmbc # && $ffvanilla
1029
1039
then
1030
1040
build_ffmbc shared
1031
1041
fi
0 commit comments