there might be some whitespace errors in randrik12/0053-fix-mjpegtools-patch4-and-patch5-termux.patch - try to set git am to --whitespace=nowarn for this patch.. may be autofix (whitespace=fix) breaks them